summaryrefslogtreecommitdiffstats
path: root/usr.bin/ranlib/ranlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ranlib/ranlib.c')
-rw-r--r--usr.bin/ranlib/ranlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ranlib/ranlib.c b/usr.bin/ranlib/ranlib.c
index c109139..d58a4cf 100644
--- a/usr.bin/ranlib/ranlib.c
+++ b/usr.bin/ranlib/ranlib.c
@@ -67,7 +67,7 @@ main(argc, argv)
int ch, eval, tflag;
tflag = 0;
- while ((ch = getopt(argc, argv, "t")) != EOF)
+ while ((ch = getopt(argc, argv, "t")) != -1)
switch(ch) {
case 't':
tflag = 1;
OpenPOWER on IntegriCloud