diff options
author | imp <imp@FreeBSD.org> | 1999-05-23 23:24:26 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-05-23 23:24:26 +0000 |
commit | 3aec1640dfcf063d1ba62f7dcbb14a1c363fd828 (patch) | |
tree | 0eeef0425d26795141407f0b4a7f4cb649cef243 /usr.sbin/rpc.ypupdated | |
parent | d0b3d805b48cc5180d9275494e354b7ddee74cde (diff) | |
download | FreeBSD-src-3aec1640dfcf063d1ba62f7dcbb14a1c363fd828.zip FreeBSD-src-3aec1640dfcf063d1ba62f7dcbb14a1c363fd828.tar.gz |
getopt(3) returns -1 not EOF.
Diffstat (limited to 'usr.sbin/rpc.ypupdated')
-rw-r--r-- | usr.sbin/rpc.ypupdated/ypupdated_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpc.ypupdated/ypupdated_main.c b/usr.sbin/rpc.ypupdated/ypupdated_main.c index 854f611..14f6a45 100644 --- a/usr.sbin/rpc.ypupdated/ypupdated_main.c +++ b/usr.sbin/rpc.ypupdated/ypupdated_main.c @@ -32,7 +32,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: ypupdated_main.c,v 1.2 1997/10/13 11:21:01 charnier Exp $"; #endif /* not lint */ #include "ypupdate_prot.h" @@ -197,7 +197,7 @@ main(argc, argv) int asize = sizeof (saddr); int ch; - while ((ch = getopt(argc, argv, "p:h")) != EOF) { + while ((ch = getopt(argc, argv, "p:h")) != -1) { switch(ch) { case 'p': yp_dir = optarg; |