summaryrefslogtreecommitdiffstats
path: root/misc-utils/look.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/look.c')
-rw-r--r--misc-utils/look.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/look.c b/misc-utils/look.c
index f3b4ba517..7ba4ac06d 100644
--- a/misc-utils/look.c
+++ b/misc-utils/look.c
@@ -98,7 +98,7 @@ main(int argc, char *argv[])
termchar = '\0';
string = NULL; /* just for gcc */
- while ((ch = getopt(argc, argv, "adft:")) != EOF)
+ while ((ch = getopt(argc, argv, "adft:")) != -1)
switch(ch) {
case 'a':
file = _PATH_WORDS_ALT;