summaryrefslogtreecommitdiff
path: root/src/termios/cfgetispeed.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/cfgetispeed.c
parent0e45c672ca5ae69f880304e1a57063525abbc854 (diff)
set values for defines, with speeds in least significant nybble
Diffstat (limited to 'src/termios/cfgetispeed.c')
-rw-r--r--src/termios/cfgetispeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/termios/cfgetispeed.c b/src/termios/cfgetispeed.c
index 8b7e91fb..d7fd9aa1 100644
--- a/src/termios/cfgetispeed.c
+++ b/src/termios/cfgetispeed.c
@@ -4,7 +4,7 @@
speed_t cfgetispeed(const struct termios *termios_p)
{
ASSERT_NONNULL(termios_p);
- return termios_p->c_iflag; /* FIXME */
+ return termios_p->c_iflag & B38400;
}
/*
POSIX(1)