aboutsummaryrefslogtreecommitdiff
path: root/libexec/revnetgroup
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-09-18 14:08:40 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-09-18 14:08:40 +0000
commitd030d2d2aee170303ffb5eed3183616ef7ddfbb4 (patch)
tree1ff40baf2bdd10f9e8275383efc4508d3e4dd2ad /libexec/revnetgroup
parent06bba905d06c4ca139b00432a8c86b2db9aeb5d8 (diff)
Notes
Diffstat (limited to 'libexec/revnetgroup')
-rw-r--r--libexec/revnetgroup/revnetgroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/revnetgroup/revnetgroup.c b/libexec/revnetgroup/revnetgroup.c
index 765548077eb3..f098167cd728 100644
--- a/libexec/revnetgroup/revnetgroup.c
+++ b/libexec/revnetgroup/revnetgroup.c
@@ -35,7 +35,7 @@
* Center for Telecommunications Research
* Columbia University, New York City
*
- * $Id: revnetgroup.c,v 1.6 1997/02/22 14:22:03 peter Exp $
+ * $Id: revnetgroup.c,v 1.7 1997/03/28 15:48:15 imp Exp $
*/
#include <stdio.h>
@@ -46,7 +46,7 @@
#include "hash.h"
#ifndef lint
-static const char rcsid[] = "$Id: revnetgroup.c,v 1.6 1997/02/22 14:22:03 peter Exp $";
+static const char rcsid[] = "$Id: revnetgroup.c,v 1.7 1997/03/28 15:48:15 imp Exp $";
#endif
/* Default location of netgroup file. */
@@ -150,7 +150,7 @@ main(argc, argv)
gcur = gtable[i];
while(gcur) {
__setnetgrent(gcur->key);
- while(__getnetgrent(&host, &user, &domain) != NULL) {
+ while(__getnetgrent(&host, &user, &domain) != 0) {
if (hosts ? host && strcmp(host,"-") : user && strcmp(user, "-"))
mstore(mtable, hosts ? host : user, gcur->key, domain);
}