diff options
author | Bill Nottingham <notting@redhat.com> | 2008-03-25 11:28:43 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-03-25 11:28:43 -0400 |
commit | cd921b877019bba4015197c31833c86aeab1df69 (patch) | |
tree | 18e59014294158ee11957822f929ccfc9f0b5c89 /src/console_check.c | |
parent | 1b76162517a5e742201e7c7974a2d6e0d437f789 (diff) | |
download | initscripts-cd921b877019bba4015197c31833c86aeab1df69.tar initscripts-cd921b877019bba4015197c31833c86aeab1df69.tar.gz initscripts-cd921b877019bba4015197c31833c86aeab1df69.tar.bz2 initscripts-cd921b877019bba4015197c31833c86aeab1df69.tar.xz initscripts-cd921b877019bba4015197c31833c86aeab1df69.zip |
ispeed/ospeed don't exist on all platforms. Use accessor functions.
Diffstat (limited to 'src/console_check.c')
-rw-r--r-- | src/console_check.c | 2 |
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)); } |