Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/id Don't compare an integer to NULL.



details:   https://anonhg.NetBSD.org/src/rev/05f27e1c8b93
branches:  trunk
changeset: 553751:05f27e1c8b93
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:17:45 2003 +0000

description:
Don't compare an integer to NULL.

diffstat:

 usr.bin/id/id.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 766c20fbf471 -r 05f27e1c8b93 usr.bin/id/id.c
--- a/usr.bin/id/id.c   Tue Oct 21 02:17:35 2003 +0000
+++ b/usr.bin/id/id.c   Tue Oct 21 02:17:45 2003 +0000
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)id.c       8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: id.c,v 1.19 2003/08/07 11:14:07 agc Exp $");
+__RCSID("$NetBSD: id.c,v 1.20 2003/10/21 02:17:45 fvdl Exp $");
 #endif
 #endif /* not lint */
 
@@ -232,7 +232,7 @@
                if ((gr = getgrgid(eid)) != NULL)
                        (void)printf("(%s)", gr->gr_name);
        }
-       if ((ngroups = getgroups(maxgroups, groups)) != NULL) {
+       if ((ngroups = getgroups(maxgroups, groups)) != 0) {
                for (fmt = " groups=%u", lastid = -1, cnt = 0; cnt < ngroups;
                    fmt = ",%u", lastid = id, cnt++) {
                        id = groups[cnt];



Home | Main Index | Thread Index | Old Index