From: Uwe Hermann Date: Wed, 14 Nov 2012 17:20:13 +0000 (+0100) Subject: serial: Compile-fix for Windows/MinGW. X-Git-Tag: dsupstream~542 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4da1a800df3ce7776b3a533308dabf484fae9a34;p=libsigrok.git serial: Compile-fix for Windows/MinGW. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 3bb07387..84d8f380 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -163,7 +163,7 @@ SR_PRIV int serial_flush(struct sr_serial_dev_inst *serial) #ifdef _WIN32 /* Returns non-zero upon success, 0 upon failure. */ - if (PurgeComm(hdl, PURGE_RXCLEAR | PURGE_TXCLEAR) == 0) ) { + if (PurgeComm(hdl, PURGE_RXCLEAR | PURGE_TXCLEAR) == 0) { sr_err("Error flushing serial port: %s.", strerror(errno)); ret = SR_ERR; }