summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/cfgetospeed.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-14 14:19:32 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-14 14:19:32 +0000
commit167217bec15c9c7aa70ba2a3dc9c689b3cd91872 (patch)
tree7c0c62debf8f9f145643102fb52b81afce743594 /mdk-stage1/dietlibc/lib/cfgetospeed.c
parent9097327dc1c667fc51b8e05cc7c0626fac96665d (diff)
downloaddrakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.gz
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.bz2
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.xz
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.zip
import new version of dietlibc
Diffstat (limited to 'mdk-stage1/dietlibc/lib/cfgetospeed.c')
-rw-r--r--mdk-stage1/dietlibc/lib/cfgetospeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/dietlibc/lib/cfgetospeed.c b/mdk-stage1/dietlibc/lib/cfgetospeed.c
index 4e392a239..4d70888f7 100644
--- a/mdk-stage1/dietlibc/lib/cfgetospeed.c
+++ b/mdk-stage1/dietlibc/lib/cfgetospeed.c
@@ -2,5 +2,5 @@
#include <sys/types.h>
speed_t cfgetospeed(struct termios *termios_p) {
- return termios_p->c_ospeed;
+ return ((termios_p->c_iflag & (CBAUD|CBAUDEX)));
}