diff options
Diffstat (limited to 'usr.bin/tty/tty.c')
-rw-r--r-- | usr.bin/tty/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tty/tty.c b/usr.bin/tty/tty.c index d07cab7..88cd60a 100644 --- a/usr.bin/tty/tty.c +++ b/usr.bin/tty/tty.c @@ -51,7 +51,7 @@ main(argc, argv) char *t, *ttyname(); sflag = 0; - while ((ch = getopt(argc, argv, "s")) != EOF) + while ((ch = getopt(argc, argv, "s")) != -1) switch((char)ch) { case 's': sflag = 1; |