From: Samuel Thibault Date: Thu, 3 Jan 2008 15:43:53 +0000 (+0100) Subject: more: replace CBAUD with cfgetispeed() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=101271dbb248f82e0f7bff15b2736222abf4bceb;p=util-linux more: replace CBAUD with cfgetispeed() Signed-off-by: Karel Zak --- diff --git a/text-utils/more.c b/text-utils/more.c index 36c26ead..d261f733 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1813,7 +1813,7 @@ retry: no_intty = tcgetattr(fileno(stdin), &otty); tcgetattr(fileno(stderr), &otty); savetty0 = otty; - slow_tty = (otty.c_cflag & CBAUD) < B1200; + slow_tty = cfgetispeed(&otty) < B1200; hardtabs = (otty.c_oflag & TABDLY) != XTABS; if (!no_tty) { otty.c_lflag &= ~(ICANON|ECHO);