diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-09-28 12:59:20 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-09-28 13:00:48 +0200 |
commit | 2e286a5429fd90c02c217c94591c690b40a93888 (patch) | |
tree | 2affd4b3b960e25f2ade9c06f820a506c4146f57 | |
parent | ca18c9df7d5d15d75b24c6f4494e34d2d28f894a (diff) |
cosmetic: clarify c_iflag in osmo_serial_init()
We first set the ISTRIP bit only to remove it in the next line.
Let's try to avoid confusing the reader.
Change-Id: Icba43dd4b6dc4f9c7f8fcf91d24b3baac4e0c74a
-rw-r--r-- | src/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serial.c b/src/serial.c index 1b5a4cfd..31cb81d1 100644 --- a/src/serial.c +++ b/src/serial.c @@ -97,7 +97,7 @@ osmo_serial_init(const char *dev, speed_t baudrate) tio.c_cflag &= ~(PARENB | CSTOPB | CSIZE | CRTSCTS); tio.c_cflag |= (CREAD | CLOCAL | CS8); tio.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG); - tio.c_iflag |= (INPCK | ISTRIP); + tio.c_iflag |= (INPCK); tio.c_iflag &= ~(ISTRIP | IXON | IXOFF | IGNBRK | INLCR | ICRNL | IGNCR); tio.c_oflag &= ~(OPOST | ONLCR); |