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/cfsetospeed.c | |
| parent | 0e45c672ca5ae69f880304e1a57063525abbc854 (diff) | |
set values for defines, with speeds in least significant nybble
Diffstat (limited to 'src/termios/cfsetospeed.c')
| -rw-r--r-- | src/termios/cfsetospeed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/termios/cfsetospeed.c b/src/termios/cfsetospeed.c index 9c11b4d8..93e53c61 100644 --- a/src/termios/cfsetospeed.c +++ b/src/termios/cfsetospeed.c @@ -21,7 +21,8 @@ int cfsetospeed(struct termios *termios_p, speed_t speed) case B9600: case B19200: case B38400: - termios_p->c_oflag = speed; /* FIXME */ + termios_p->c_oflag &= ~B38400; + termios_p->c_oflag |= speed; return 0; default: |
