From: Samuel Thibault Date: Thu, 3 Jan 2008 15:40:48 +0000 (+0100) Subject: login: replace termio with termios interface X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad3a3bfc7ac4f32e962fe5d4b86d95f9258556d1;p=util-linux login: replace termio with termios interface Signed-off-by: Karel Zak --- diff --git a/login-utils/login.c b/login-utils/login.c index 9b02358c..d40381d4 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -1308,12 +1308,12 @@ getloginname(void) { static void timedout2(int sig) { - struct termio ti; + struct termios ti; /* reset echo */ - ioctl(0, TCGETA, &ti); + tcgetattr(0, &ti); ti.c_lflag |= ECHO; - ioctl(0, TCSETA, &ti); + tcsetattr(0, TCSANOW, &ti); exit(0); /* %% */ }