From 101271dbb248f82e0f7bff15b2736222abf4bceb Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 3 Jan 2008 16:43:53 +0100 Subject: [PATCH] more: replace CBAUD with cfgetispeed() Signed-off-by: Karel Zak --- text-utils/more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5