diff --git a/src/serial_posix.c b/src/serial_posix.c index e56eb0d..80334b0 100644 --- a/src/serial_posix.c +++ b/src/serial_posix.c @@ -426,7 +426,7 @@ serial_configure (serial_t *device, int baudrate, int databits, int parity, int SYSERROR (device->context, errno); return -1; } - if (memcmp (&tty, &active, sizeof (struct termios) != 0)) { + if (memcmp (&tty, &active, sizeof (struct termios)) != 0) { ERROR (device->context, "Failed to set the terminal attributes."); return -1; }