summaryrefslogtreecommitdiffstats
path: root/usr.bin/mt/mt.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mt/mt.c')
-rw-r--r--usr.bin/mt/mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mt/mt.c b/usr.bin/mt/mt.c
index c5adecb..ae94971 100644
--- a/usr.bin/mt/mt.c
+++ b/usr.bin/mt/mt.c
@@ -126,7 +126,7 @@ main(argc, argv)
if ((tape = getenv("TAPE")) == NULL)
tape = DEFTAPE;
- while ((ch = getopt(argc, argv, "f:t:")) != EOF)
+ while ((ch = getopt(argc, argv, "f:t:")) != -1)
switch(ch) {
case 'f':
case 't':
OpenPOWER on IntegriCloud