From ad3a3bfc7ac4f32e962fe5d4b86d95f9258556d1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 3 Jan 2008 16:40:48 +0100 Subject: [PATCH] login: replace termio with termios interface Signed-off-by: Karel Zak --- login-utils/login.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); /* %% */ } -- 2.39.5