Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/last Tidy up: we no longer need FIRSTVALID for its o...



details:   https://anonhg.NetBSD.org/src/rev/4c24c5b22bfd
branches:  trunk
changeset: 778069:4c24c5b22bfd
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Mar 15 03:04:05 2012 +0000

description:
Tidy up: we no longer need FIRSTVALID for its original purpose, so change
the name of the symbol to something that applies to the remaining use.

diffstat:

 usr.bin/last/last.c |  10 +++++-----
 usr.bin/last/want.c |   4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (61 lines):

diff -r db4436f194d5 -r 4c24c5b22bfd usr.bin/last/last.c
--- a/usr.bin/last/last.c       Thu Mar 15 03:01:03 2012 +0000
+++ b/usr.bin/last/last.c       Thu Mar 15 03:04:05 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: last.c,v 1.35 2011/09/16 15:39:27 joerg Exp $  */
+/*     $NetBSD: last.c,v 1.36 2012/03/15 03:04:05 dholland Exp $       */
 
 /*
  * Copyright (c) 1987, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)last.c     8.2 (Berkeley) 4/2/94";
 #endif
-__RCSID("$NetBSD: last.c,v 1.35 2011/09/16 15:39:27 joerg Exp $");
+__RCSID("$NetBSD: last.c,v 1.36 2012/03/15 03:04:05 dholland Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -378,14 +378,14 @@
 #define LINESIZE UT_LINESIZE
 #define HOSTSIZE UT_HOSTSIZE
 #define ut_timefld ut_time
-#define FIRSTVALID 0
+#define HAS_UT_SS 0
 #include "want.c"
 #undef TYPE /*(a)*/
 #undef NAMESIZE
 #undef LINESIZE
 #undef HOSTSIZE
 #undef ut_timefld
-#undef FIRSTVALID
+#undef HAS_UT_SS
 #endif
 
 #ifdef SUPPORT_UTMPX
@@ -400,6 +400,6 @@
 #define LINESIZE UTX_LINESIZE
 #define HOSTSIZE UTX_HOSTSIZE
 #define ut_timefld ut_xtime
-#define FIRSTVALID 1
+#define HAS_UT_SS 1
 #include "want.c"
 #endif
diff -r db4436f194d5 -r 4c24c5b22bfd usr.bin/last/want.c
--- a/usr.bin/last/want.c       Thu Mar 15 03:01:03 2012 +0000
+++ b/usr.bin/last/want.c       Thu Mar 15 03:04:05 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: want.c,v 1.16 2012/03/15 03:01:03 dholland Exp $       */
+/*     $NetBSD: want.c,v 1.17 2012/03/15 03:04:05 dholland Exp $       */
 
 /*
  * Copyright (c) 1987, 1993, 1994
@@ -39,7 +39,7 @@
 /*ARGSUSED*/
 gethost(struct utmp *ut, const char *host, int numeric)
 {
-#if FIRSTVALID == 0
+#if HAS_UT_SS == 0
        return numeric ? "" : host;
 #else
        if (numeric) {



Home | Main Index | Thread Index | Old Index