diff options
Diffstat (limited to 'sbin/reboot/reboot.c')
-rw-r--r-- | sbin/reboot/reboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 66e5398..a103a32 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -72,7 +72,7 @@ main(argc, argv) } else howto = 0; lflag = nflag = qflag = 0; - while ((ch = getopt(argc, argv, "lnpq")) != EOF) + while ((ch = getopt(argc, argv, "lnpq")) != -1) switch(ch) { case 'l': /* Undocumented; used by shutdown. */ lflag = 1; |