iconv: fix missing bounds checking for shift_jis decoding
[musl.git] / src / termios / cfgetospeed.c
blob55fa6f55c0ecb4c9ecdb84dfbf61da12b5813579
1 #define _BSD_SOURCE
2 #include <termios.h>
3 #include <sys/ioctl.h>
5 speed_t cfgetospeed(const struct termios *tio)
7 return tio->c_cflag & CBAUD;
10 speed_t cfgetispeed(const struct termios *tio)
12 return cfgetospeed(tio);