summaryrefslogtreecommitdiffstats
path: root/usr.bin/printenv/printenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/printenv/printenv.c')
-rw-r--r--usr.bin/printenv/printenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/printenv/printenv.c b/usr.bin/printenv/printenv.c
index fc40e3d..cf33837 100644
--- a/usr.bin/printenv/printenv.c
+++ b/usr.bin/printenv/printenv.c
@@ -66,7 +66,7 @@ main(argc, argv)
register size_t len;
int ch;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default:
OpenPOWER on IntegriCloud