aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/edquota
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/edquota
parent44ee97a91b095311b8703857d54df336354236a0 (diff)
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/edquota')
-rw-r--r--usr.sbin/edquota/edquota.c2
1 files changed, 1 insertions, 1 deletions
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;