From 167db5291223948e17d74470feff53f15777fcaf Mon Sep 17 00:00:00 2001 From: imp 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/savecore/savecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/savecore/savecore.c') diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 760835a..d78a55a 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -139,7 +139,7 @@ main(argc, argv) openlog("savecore", LOG_PERROR, LOG_DAEMON); - while ((ch = getopt(argc, argv, "cdfN:vz")) != EOF) + while ((ch = getopt(argc, argv, "cdfN:vz")) != -1) switch(ch) { case 'c': clear = 1; -- cgit v1.1