diff options
author | Ruediger Meier | 2017-06-15 08:55:40 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-15 08:55:40 +0200 |
commit | d0c5e5c2417ffc15070cc3485b6a1a9881c099a8 (patch) | |
tree | 446f92ab18978232c12b379606766ef3a3240e7c /text-utils/more.c | |
parent | tests: split partx in root and non-root (diff) | |
download | kernel-qcow2-util-linux-d0c5e5c2417ffc15070cc3485b6a1a9881c099a8.tar.gz kernel-qcow2-util-linux-d0c5e5c2417ffc15070cc3485b6a1a9881c099a8.tar.xz kernel-qcow2-util-linux-d0c5e5c2417ffc15070cc3485b6a1a9881c099a8.zip |
more: remove unused variable
slow_tty is at least unused since util-linux 2.2.
FYI here is another derived more.c where slow_tty is still used:
https://github.com/sergev/LiteBSD/blob/master/old/more/more.c
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'text-utils/more.c')
-rw-r--r-- | text-utils/more.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/text-utils/more.c b/text-utils/more.c index c0c2e8743..7c197b201 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -138,7 +138,7 @@ void prepare_line_buffer(void); static struct termios otty, savetty0; static long file_pos, file_size; -static int fnum, no_intty, no_tty, slow_tty; +static int fnum, no_intty, no_tty; static int dum_opt, dlines; static void onquit(int), onsusp(int), chgwinsz(int), end_it(int); static int nscroll = SCROLL_LEN; /* Number of lines scrolled by 'd' */ @@ -1818,7 +1818,6 @@ void initterm(void) no_intty = tcgetattr(fileno(stdin), &otty); tcgetattr(fileno(stderr), &otty); savetty0 = otty; - slow_tty = cfgetispeed(&otty) < B1200; hardtabs = (otty.c_oflag & TABDLY) != XTABS; if (!no_tty) { otty.c_lflag &= ~(ICANON | ECHO); |