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/quotacheck/quotacheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/quotacheck') diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 4ca71c5..5e0d067 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -136,7 +136,7 @@ main(argc, argv) char ch, *name; errs = maxrun = 0; - while ((ch = getopt(argc, argv, "aguvl:")) != EOF) { + while ((ch = getopt(argc, argv, "aguvl:")) != -1) { switch(ch) { case 'a': aflag++; -- cgit v1.1