From 8d64695c7c6791641c71b15441665bafc43c2bd0 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 29 Mar 1997 03:33:12 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- sbin/routed/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/routed/main.c') diff --git a/sbin/routed/main.c b/sbin/routed/main.c index 36399e999a70..327ffdf8acdb 100644 --- a/sbin/routed/main.c +++ b/sbin/routed/main.c @@ -123,7 +123,7 @@ main(int argc, (void)gethostname(myname, sizeof(myname)-1); (void)gethost(myname, &myaddr); - while ((n = getopt(argc, argv, "sqdghmpAtT:F:P:")) != EOF) { + while ((n = getopt(argc, argv, "sqdghmpAtT:F:P:")) != -1) { switch (n) { case 's': supplier = 1; -- cgit v1.3