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/mknetid | |
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/mknetid')
-rw-r--r-- | libexec/mknetid/mknetid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/mknetid/mknetid.c b/libexec/mknetid/mknetid.c index 81e3066..36bbfc4 100644 --- a/libexec/mknetid/mknetid.c +++ b/libexec/mknetid/mknetid.c @@ -35,7 +35,7 @@ * Center for Telecommunications Research * Columbia University, New York City * - * $Id$ + * $Id: mknetid.c,v 1.6 1997/02/22 14:21:54 peter Exp $ */ #include <sys/types.h> @@ -55,7 +55,7 @@ #include "hash.h" #ifndef lint -static const char rcsid[] = "$Id$"; +static const char rcsid[] = "$Id: mknetid.c,v 1.6 1997/02/22 14:21:54 peter Exp $"; #endif #define LINSIZ 1024 @@ -111,7 +111,7 @@ main(argc, argv) char *ptr, *pidptr, *gidptr, *hptr; int quiet = 0; - while ((ch = getopt(argc, argv, "g:p:h:n:d:q")) != EOF) { + while ((ch = getopt(argc, argv, "g:p:h:n:d:q")) != -1) { switch(ch) { case 'g': groupfile = optarg; |