summaryrefslogtreecommitdiffstats
path: root/usr.bin/tr/tr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tr/tr.c')
-rw-r--r--usr.bin/tr/tr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c
index 2dc5402..50b9d7c 100644
--- a/usr.bin/tr/tr.c
+++ b/usr.bin/tr/tr.c
@@ -103,7 +103,7 @@ main(argc, argv)
(void) setlocale(LC_CTYPE, "");
cflag = dflag = sflag = 0;
- while ((ch = getopt(argc, argv, "cds")) != EOF)
+ while ((ch = getopt(argc, argv, "cds")) != -1)
switch((char)ch) {
case 'c':
cflag = 1;
OpenPOWER on IntegriCloud