summaryrefslogtreecommitdiffstats
path: root/usr.bin/tput/tput.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tput/tput.c')
-rw-r--r--usr.bin/tput/tput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tput/tput.c b/usr.bin/tput/tput.c
index c45be50..c1afb31 100644
--- a/usr.bin/tput/tput.c
+++ b/usr.bin/tput/tput.c
@@ -67,7 +67,7 @@ main(argc, argv)
char *cptr, *p, *term, buf[1024], tbuf[1024];
term = NULL;
- while ((ch = getopt(argc, argv, "T:")) != EOF)
+ while ((ch = getopt(argc, argv, "T:")) != -1)
switch(ch) {
case 'T':
term = optarg;
OpenPOWER on IntegriCloud