diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-12 19:54:54 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-12 19:54:54 -0500 |
| commit | f55fd6e50f9e36b42b0144067bb9130efd9a7871 (patch) | |
| tree | 02f47fdfec3f940b5eaade9fd9735c3566774edc /src/termios/cfgetospeed.c | |
| parent | 0e45c672ca5ae69f880304e1a57063525abbc854 (diff) | |
set values for defines, with speeds in least significant nybble
Diffstat (limited to 'src/termios/cfgetospeed.c')
| -rw-r--r-- | src/termios/cfgetospeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/termios/cfgetospeed.c b/src/termios/cfgetospeed.c index 88f13c9e..870f6b35 100644 --- a/src/termios/cfgetospeed.c +++ b/src/termios/cfgetospeed.c @@ -4,7 +4,7 @@ speed_t cfgetospeed(const struct termios *termios_p) { ASSERT_NONNULL(termios_p); - return termios_p->c_oflag; /* FIXME */ + return termios_p->c_oflag & B38400; } /* POSIX(1) |
