serial: Compile-fix for Windows/MinGW.

This commit is contained in:
Uwe Hermann 2012-11-14 18:20:13 +01:00
parent 6bef68a7e1
commit 4da1a800df
1 changed files with 1 additions and 1 deletions

View File

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