aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/console_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_check.c b/src/console_check.c
index e188ebe5..595012ff 100644
--- a/src/console_check.c
+++ b/src/console_check.c
@@ -52,7 +52,7 @@ struct speeds speed_map[] =
int termcmp(struct termios *a, struct termios *b) {
if (a->c_iflag != b->c_iflag || a->c_oflag != b->c_oflag ||
a->c_cflag != b->c_cflag || a->c_lflag != b->c_lflag ||
- a->c_ispeed != b->c_ispeed || a->c_ospeed != b->c_ospeed)
+ cfgetispeed(a) != cfgetispeed(b) || cfgetospeed(a) != cfgetospeed(b))
return 1;
return memcmp(a->c_cc, b->c_cc, sizeof(a->c_cc));
}