Fix compile error on Windows

We need to return a DC_STATUS here.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-09-18 07:41:55 -07:00
parent 93ef223a31
commit 3ea15febfa

View file

@ -277,7 +277,7 @@ static dc_status_t qt_serial_write(void **userdata, const void* data, size_t siz
rc = send(device->socket, (char *) data + nbytes, size - nbytes, 0);
if (rc < 0) {
return -1; // Error during send call.
return DC_STATUS_IO; // Error during send call.
}
nbytes += rc;