]> granicus.if.org Git - sudo/commitdiff
fixed incorrect #ifdef
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 3 Sep 1995 18:09:40 +0000 (18:09 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 3 Sep 1995 18:09:40 +0000 (18:09 +0000)
termio uses "unsigned short" not int for c_?flag

tgetpass.c

index 750113d8ff619f7e784649a8998745fcaba4fa50..30c3c775f0162b8858802148e24f9eadbf13c531 100644 (file)
@@ -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;