From 91477cc4d7fe265d722af24b978c1e6147178301 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 28 Mar 1997 15:48:21 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- libexec/revnetgroup/revnetgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/revnetgroup') diff --git a/libexec/revnetgroup/revnetgroup.c b/libexec/revnetgroup/revnetgroup.c index c2a3574884e6..765548077eb3 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$ + * $Id: revnetgroup.c,v 1.6 1997/02/22 14:22:03 peter Exp $ */ #include @@ -46,7 +46,7 @@ #include "hash.h" #ifndef lint -static const char rcsid[] = "$Id$"; +static const char rcsid[] = "$Id: revnetgroup.c,v 1.6 1997/02/22 14:22:03 peter Exp $"; #endif /* Default location of netgroup file. */ @@ -87,7 +87,7 @@ main(argc, argv) if (argc < 2) usage(argv[0]); - while ((ch = getopt(argc, argv, "uhf:")) != EOF) { + while ((ch = getopt(argc, argv, "uhf:")) != -1) { switch(ch) { case 'u': if (hosts != -1) { -- cgit v1.2.3