summaryrefslogtreecommitdiffstats
path: root/usr.bin/head/head.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/head/head.c')
-rw-r--r--usr.bin/head/head.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c
index d154d53..3e5bf04 100644
--- a/usr.bin/head/head.c
+++ b/usr.bin/head/head.c
@@ -75,7 +75,7 @@ main(argc, argv)
obsolete(argv);
linecnt = 10;
- while ((ch = getopt(argc, argv, "n:")) != EOF)
+ while ((ch = getopt(argc, argv, "n:")) != -1)
switch(ch) {
case 'n':
linecnt = strtol(optarg, &ep, 10);
OpenPOWER on IntegriCloud