]> err.no Git - util-linux/commitdiff
more: replace CBAUD with cfgetispeed()
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 3 Jan 2008 15:43:53 +0000 (16:43 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Jan 2008 15:43:53 +0000 (16:43 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/more.c

index 36c26ead09f9e462369939d467f83ef0a3998882..d261f7334190eb4ea57b98c95b20ca7cf2f3e00a 100644 (file)
@@ -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);