diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:36:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:36:27 +0000 |
commit | e2ddf551fe54f5fd63dbb0131d6835d07f172753 (patch) | |
tree | ee263115c37260360e628dc4fc5e029d18e30311 /usr.sbin/user | |
parent | ecdee9dbaa69f9aa6f959777e5e515c31bb6a0f8 (diff) |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'usr.sbin/user')
-rw-r--r-- | usr.sbin/user/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c index 2e850d68c58..62bd7aa58ae 100644 --- a/usr.sbin/user/user.c +++ b/usr.sbin/user/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.78 2010/07/26 10:55:17 miod Exp $ */ +/* $OpenBSD: user.c,v 1.79 2011/04/06 11:36:26 miod Exp $ */ /* $NetBSD: user.c,v 1.69 2003/04/14 17:40:07 agc Exp $ */ /* @@ -924,7 +924,7 @@ scantime(time_t *tp, char *s) *tp = mktime(&tm); } else if (strptime(s, "%B %d %Y", &tm) != NULL) { *tp = mktime(&tm); - } else if (isdigit((unsigned char) s[0]) != NULL) { + } else if (isdigit((unsigned char) s[0]) != 0) { *tp = atoi(s); } else { return 0; |