summaryrefslogtreecommitdiff
path: root/usr.bin/w/w.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/w/w.c')
-rw-r--r--usr.bin/w/w.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 57cc2d69390..7592955a8df 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: w.c,v 1.11 1996/12/22 03:26:10 tholo Exp $ */
+/* $OpenBSD: w.c,v 1.12 1997/01/15 23:43:35 millert Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -141,7 +141,7 @@ main(argc, argv)
}
memf = nlistf = NULL;
- while ((ch = getopt(argc, argv, p)) != EOF)
+ while ((ch = getopt(argc, argv, p)) != -1)
switch (ch) {
case 'h':
header = 0;