summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r--usr.sbin/config/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index 3e6778f..ae9cfce 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -79,7 +79,7 @@ main(argc, argv)
int ch;
char *p;
- while ((ch = getopt(argc, argv, "gpn")) != EOF)
+ while ((ch = getopt(argc, argv, "gpn")) != -1)
switch (ch) {
case 'g':
debugging++;
OpenPOWER on IntegriCloud