diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-18 01:28:41 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-18 01:28:41 +0000 |
commit | d272ea8f06cb6a9b5c5f15167496785a0c52a4cf (patch) | |
tree | fd21c1fa838a6d97212b375d3aa82d208150447d | |
parent | 97a507661943e471d2ac06c4c8a69128ce9866e1 (diff) |
0 vs NULL, from Joris Vink
-rw-r--r-- | usr.sbin/ac/ac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index ee44179162a..b5083b0c14d 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -14,7 +14,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ac.c,v 1.16 2004/01/21 07:52:02 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: ac.c,v 1.17 2004/03/18 01:28:40 tedu Exp $"; #endif #include <sys/types.h> @@ -486,7 +486,7 @@ ac(FILE *fp) */ if (*usr.ut_name) { if (strncmp(usr.ut_line, "tty", 3) != 0 || - strchr("pqrstuvwxyzPQRST", usr.ut_line[3]) != 0 || + strchr("pqrstuvwxyzPQRST", usr.ut_line[3]) != NULL || *usr.ut_host != '\0') head = log_in(head, &usr); } else @@ -496,7 +496,7 @@ ac(FILE *fp) } (void)fclose(fp); if (!(Flags & AC_W)) - usr.ut_time = time((time_t *)0); + usr.ut_time = time(NULL); (void)strlcpy(usr.ut_line, "~", sizeof usr.ut_line); if (Flags & AC_D) { @@ -518,7 +518,7 @@ ac(FILE *fp) head = log_out(head, &usr); if (Flags & AC_D) - show_today(Users, head, time((time_t *)0)); + show_today(Users, head, time(NULL)); else { if (Flags & AC_P) show_users(Users); |