summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorimp <imp@cvs.openbsd.org>1996-10-26 04:16:36 +0000
committerimp <imp@cvs.openbsd.org>1996-10-26 04:16:36 +0000
commit957ed5f374a1b3a9eb5d5c08e06c8968bd98d1b9 (patch)
treef1766551ae23f9abde26e816999d5e71f365742e /usr.sbin
parent17a1133a529364681473c9f213308d5e117e019b (diff)
getopt returns -1 on OpenBSD
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpq/lpq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c
index 828e61badb5..04ee9eb1cf7 100644
--- a/usr.sbin/lpr/lpq/lpq.c
+++ b/usr.sbin/lpr/lpq/lpq.c
@@ -95,7 +95,7 @@ main(argc, argv)
openlog("lpd", 0, LOG_LPR);
aflag = lflag = 0;
- while ((ch = getopt(argc, argv, "alP:")) != EOF)
+ while ((ch = getopt(argc, argv, "alP:")) != -1)
switch((char)ch) {
case 'a':
++aflag;