summaryrefslogtreecommitdiffstats
path: root/usr.bin/mesg/mesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mesg/mesg.c')
-rw-r--r--usr.bin/mesg/mesg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mesg/mesg.c b/usr.bin/mesg/mesg.c
index ad666f7..96906c6 100644
--- a/usr.bin/mesg/mesg.c
+++ b/usr.bin/mesg/mesg.c
@@ -65,7 +65,7 @@ main(argc, argv)
char *tty;
int ch;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default:
OpenPOWER on IntegriCloud