From 2e286a5429fd90c02c217c94591c690b40a93888 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 28 Sep 2019 12:59:20 +0200 Subject: 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 --- src/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3