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
This commit is contained in:
Harald Welte 2019-09-28 12:59:20 +02:00 committed by Harald Welte
parent ca18c9df7d
commit 2e286a5429
1 changed files with 1 additions and 1 deletions

View File

@ -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);