From 6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 31 Mar 1997 05:11:47 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- usr.sbin/edquota/edquota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/edquota') diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c index 31fee417f295..8918d453e495 100644 --- a/usr.sbin/edquota/edquota.c +++ b/usr.sbin/edquota/edquota.c @@ -97,7 +97,7 @@ main(argc, argv) exit(1); } quotatype = USRQUOTA; - while ((ch = getopt(argc, argv, "ugtp:")) != EOF) { + while ((ch = getopt(argc, argv, "ugtp:")) != -1) { switch(ch) { case 'p': protoname = optarg; -- cgit v1.2.3