summaryrefslogtreecommitdiffstats
path: root/usr.bin/rwho/rwho.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rwho/rwho.c')
-rw-r--r--usr.bin/rwho/rwho.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/rwho/rwho.c b/usr.bin/rwho/rwho.c
index b617af5..557e8fa 100644
--- a/usr.bin/rwho/rwho.c
+++ b/usr.bin/rwho/rwho.c
@@ -88,7 +88,7 @@ main(argc, argv)
(void) setlocale(LC_TIME, "");
- while ((ch = getopt(argc, argv, "a")) != EOF)
+ while ((ch = getopt(argc, argv, "a")) != -1)
switch((char)ch) {
case 'a':
aflg = 1;
OpenPOWER on IntegriCloud