diff options
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 1f21866ca..3953cc904 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -1436,7 +1436,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li | |||
1436 | #define _POSIX_VDISABLE '\0' | 1436 | #define _POSIX_VDISABLE '\0' |
1437 | #endif | 1437 | #endif |
1438 | new_settings.c_cc[VINTR] = _POSIX_VDISABLE; | 1438 | new_settings.c_cc[VINTR] = _POSIX_VDISABLE; |
1439 | tcsetattr(STDIN_FILENO, TCSANOW, &new_settings); | 1439 | tcsetattr_stdin_TCSANOW(&new_settings); |
1440 | 1440 | ||
1441 | /* Now initialize things */ | 1441 | /* Now initialize things */ |
1442 | previous_SIGWINCH_handler = signal(SIGWINCH, win_changed); | 1442 | previous_SIGWINCH_handler = signal(SIGWINCH, win_changed); |
@@ -1860,7 +1860,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li | |||
1860 | #endif | 1860 | #endif |
1861 | 1861 | ||
1862 | /* restore initial_settings */ | 1862 | /* restore initial_settings */ |
1863 | tcsetattr(STDIN_FILENO, TCSANOW, &initial_settings); | 1863 | tcsetattr_stdin_TCSANOW(&initial_settings); |
1864 | /* restore SIGWINCH handler */ | 1864 | /* restore SIGWINCH handler */ |
1865 | signal(SIGWINCH, previous_SIGWINCH_handler); | 1865 | signal(SIGWINCH, previous_SIGWINCH_handler); |
1866 | fflush(stdout); | 1866 | fflush(stdout); |