summaryrefslogtreecommitdiff
path: root/tgetpass.c
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>1995-09-03 18:09:40 +0000
committerTodd C. Miller <Todd.Miller@courtesan.com>1995-09-03 18:09:40 +0000
commit7ada75ab152c69220b40b4666e15439511c5d60d (patch)
treed5578e88b964ca0887fffcf2ae6d8929c6cc317a /tgetpass.c
parentaa4aef754850037a8d3458c3434a376d1d8b3152 (diff)
downloadsudo-7ada75ab152c69220b40b4666e15439511c5d60d.tar.gz
fixed incorrect #ifdef
termio uses "unsigned short" not int for c_?flag
Diffstat (limited to 'tgetpass.c')
-rw-r--r--tgetpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tgetpass.c b/tgetpass.c
index 750113d8f..30c3c775f 100644
--- a/tgetpass.c
+++ b/tgetpass.c
@@ -102,10 +102,10 @@ char * tgetpass(prompt, timeout)
#else
int oldmask;
#endif
-#ifdef HAVE_TERMIO_H
+#ifdef HAVE_TERMIOS_H
tcflag_t svflagval;
#else
- int svflagval;
+ unsigned short svflagval;
#endif
fd_set readfds;
struct timeval tv;