From 3ea15febfae811dc7bbdf23a0965088f2548032f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 18 Sep 2016 07:41:55 -0700 Subject: Fix compile error on Windows We need to return a DC_STATUS here. Signed-off-by: Dirk Hohndel --- core/qtserialbluetooth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index a7856af64..1b227cfd5 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -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; -- cgit v1.2.3-70-g09d2