diff options
author | miod <miod@openbsd.org> | 2011-04-06 11:36:23 +0000 |
---|---|---|
committer | miod <miod@openbsd.org> | 2011-04-06 11:36:23 +0000 |
commit | 691235adb977a6a7730c100aa9b733644d50c443 (patch) | |
tree | 55fba51a8d239644006a1329a3fb5146e9974cc9 /usr.sbin/ypserv | |
parent | Local variables storing integer values and printed with %d should be (diff) | |
download | wireguard-openbsd-691235adb977a6a7730c100aa9b733644d50c443.tar.xz wireguard-openbsd-691235adb977a6a7730c100aa9b733644d50c443.zip |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r-- | usr.sbin/ypserv/revnetgroup/revnetgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypserv/revnetgroup/revnetgroup.c b/usr.sbin/ypserv/revnetgroup/revnetgroup.c index 97113a9ac78..e7b64d0e1db 100644 --- a/usr.sbin/ypserv/revnetgroup/revnetgroup.c +++ b/usr.sbin/ypserv/revnetgroup/revnetgroup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: revnetgroup.c,v 1.9 2009/10/27 23:59:58 deraadt Exp $ */ +/* $OpenBSD: revnetgroup.c,v 1.10 2011/04/06 11:36:26 miod Exp $ */ /* * Copyright (c) 1995 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -142,7 +142,7 @@ main(int argc, char *argv[]) gcur = gtable[i]; while (gcur) { __setnetgrent(gcur->key); - while (__getnetgrent(&host, &user, &domain) != NULL) { + while (__getnetgrent(&host, &user, &domain) != 0) { if (hosts) { if (!(host && !strcmp(host,"-"))) { mstore(mtable, |