Source-Changes-HG archive

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

[src/trunk]: src/dist/am-utils/libamu Don't compare an int to NULL.



details:   https://anonhg.NetBSD.org/src/rev/018b9e0acf38
branches:  trunk
changeset: 553767:018b9e0acf38
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:39:44 2003 +0000

description:
Don't compare an int to NULL.

diffstat:

 dist/am-utils/libamu/mount_fs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0a8e268f37ef -r 018b9e0acf38 dist/am-utils/libamu/mount_fs.c
--- a/dist/am-utils/libamu/mount_fs.c   Tue Oct 21 02:38:15 2003 +0000
+++ b/dist/am-utils/libamu/mount_fs.c   Tue Oct 21 02:39:44 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount_fs.c,v 1.9 2003/07/15 09:01:19 itojun Exp $      */
+/*     $NetBSD: mount_fs.c,v 1.10 2003/10/21 02:39:44 fvdl Exp $       */
 
 /*
  * Copyright (c) 1997-2003 Erez Zadok
@@ -725,7 +725,7 @@
 
 #if defined(MNT2_NFS_OPT_MAXGRPS) && defined(MNTTAB_OPT_MAXGROUPS)
   nap->maxgrouplist = hasmntval(mntp, MNTTAB_OPT_MAXGROUPS);
-  if (nap->maxgrouplist != NULL)
+  if (nap->maxgrouplist != 0)
     nap->flags |= MNT2_NFS_OPT_MAXGRPS;
 #endif /* defined(MNT2_NFS_OPT_MAXGRPS) && defined(MNTTAB_OPT_MAXGROUPS) */
 



Home | Main Index | Thread Index | Old Index