From 3aec1640dfcf063d1ba62f7dcbb14a1c363fd828 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 23 May 1999 23:24:26 +0000 Subject: getopt(3) returns -1 not EOF. --- usr.sbin/rpc.ypupdated/ypupdated_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/rpc.ypupdated') 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; -- cgit v1.1