Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/user Don't compare an int to NULL.



details:   https://anonhg.NetBSD.org/src/rev/c9df787893ac
branches:  trunk
changeset: 553776:c9df787893ac
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:58:50 2003 +0000

description:
Don't compare an int to NULL.

diffstat:

 usr.sbin/user/user.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c40f9ad15d31 -r c9df787893ac usr.sbin/user/user.c
--- a/usr.sbin/user/user.c      Tue Oct 21 02:55:43 2003 +0000
+++ b/usr.sbin/user/user.c      Tue Oct 21 02:58:50 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: user.c,v 1.70 2003/06/12 17:00:53 agc Exp $ */
+/* $NetBSD: user.c,v 1.71 2003/10/21 02:58:50 fvdl Exp $ */
 
 /*
  * Copyright (c) 1999 Alistair G. Crooks.  All rights reserved.
@@ -35,7 +35,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1999 \
                The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: user.c,v 1.70 2003/06/12 17:00:53 agc Exp $");
+__RCSID("$NetBSD: user.c,v 1.71 2003/10/21 02:58:50 fvdl Exp $");
 #endif
 
 #include <sys/types.h>
@@ -934,7 +934,7 @@
                        *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;



Home | Main Index | Thread Index | Old Index