summaryrefslogtreecommitdiff
path: root/src/termios/cfsetispeed.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-12 19:54:54 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-12 19:54:54 -0500
commitf55fd6e50f9e36b42b0144067bb9130efd9a7871 (patch)
tree02f47fdfec3f940b5eaade9fd9735c3566774edc /src/termios/cfsetispeed.c
parent0e45c672ca5ae69f880304e1a57063525abbc854 (diff)
set values for defines, with speeds in least significant nybble
Diffstat (limited to 'src/termios/cfsetispeed.c')
-rw-r--r--src/termios/cfsetispeed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/termios/cfsetispeed.c b/src/termios/cfsetispeed.c
index a500ba49..40267942 100644
--- a/src/termios/cfsetispeed.c
+++ b/src/termios/cfsetispeed.c
@@ -22,7 +22,8 @@ int cfsetispeed(struct termios *termios_p, speed_t speed)
case B9600:
case B19200:
case B38400:
- termios_p->c_iflag = speed; /* FIXME */
+ termios_p->c_iflag &= ~B38400;
+ termios_p->c_iflag |= speed;
return 0;
default: