diff options
author | imp <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
commit | 3125d931c2865b48cb5780a22e277701803212c6 (patch) | |
tree | 5fe9e887ce5fdacb7324ecf172d3dc7bbd561532 /libexec/revnetgroup | |
parent | 054f35c2222ef251bc2877814cf7bf5ff6038166 (diff) | |
download | FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.zip FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.tar.gz |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'libexec/revnetgroup')
-rw-r--r-- | libexec/revnetgroup/revnetgroup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/revnetgroup/revnetgroup.c b/libexec/revnetgroup/revnetgroup.c index c2a3574..7655480 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 <stdio.h> @@ -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) { |