aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/quotaon/quotaon.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
committerWarner Losh <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
commit6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc (patch)
tree9dcc58d3fb5e1644413565971c98196650ef87d3 /usr.sbin/quotaon/quotaon.c
parent44ee97a91b095311b8703857d54df336354236a0 (diff)
downloadsrc-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.tar.gz
src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.zip
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes: svn path=/head/; revision=24428
Diffstat (limited to 'usr.sbin/quotaon/quotaon.c')
-rw-r--r--usr.sbin/quotaon/quotaon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index 8eabd27c9306..a390f657910a 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -83,7 +83,7 @@ main(argc, argv)
whoami);
exit(1);
}
- while ((ch = getopt(argc, argv, "avug")) != EOF) {
+ while ((ch = getopt(argc, argv, "avug")) != -1) {
switch(ch) {
case 'a':
aflag++;