diff options
Diffstat (limited to 'loginutils/vlock.c')
-rw-r--r-- | loginutils/vlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/vlock.c b/loginutils/vlock.c index 42ef447..0262da5 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c @@ -87,7 +87,7 @@ int vlock_main(int argc UNUSED_PARAM, char **argv) term.c_iflag |= IGNBRK; term.c_lflag &= ~ISIG; term.c_lflag &= ~(ECHO | ECHOCTL); - tcsetattr(STDIN_FILENO, TCSANOW, &term); + tcsetattr_stdin_TCSANOW(&term); do { printf("Virtual console%s locked by %s.\n", @@ -101,6 +101,6 @@ int vlock_main(int argc UNUSED_PARAM, char **argv) } while (1); ioctl(STDIN_FILENO, VT_SETMODE, &ovtm); - tcsetattr(STDIN_FILENO, TCSANOW, &oterm); + tcsetattr_stdin_TCSANOW(&oterm); fflush_stdout_and_exit(EXIT_SUCCESS); } |