summaryrefslogtreecommitdiffstats
path: root/usr.bin/look
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/look')
-rw-r--r--usr.bin/look/look.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/look/look.c b/usr.bin/look/look.c
index da972bd..c3b7480 100644
--- a/usr.bin/look/look.c
+++ b/usr.bin/look/look.c
@@ -107,7 +107,7 @@ main(argc, argv)
file = _PATH_WORDS;
termchar = '\0';
- while ((ch = getopt(argc, argv, "dft:")) != EOF)
+ while ((ch = getopt(argc, argv, "dft:")) != -1)
switch(ch) {
case 'd':
dflag = 1;
OpenPOWER on IntegriCloud