summaryrefslogtreecommitdiffstats
path: root/core/qtserialbluetooth.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-18 07:41:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-18 07:41:55 -0700
commit3ea15febfae811dc7bbdf23a0965088f2548032f (patch)
treecf4f2e1e2878682f998a48cfd0ac16e038c57df6 /core/qtserialbluetooth.cpp
parent93ef223a3131db838abc7c390ddce3fae8be5f7c (diff)
downloadsubsurface-3ea15febfae811dc7bbdf23a0965088f2548032f.tar.gz
Fix compile error on Windows
We need to return a DC_STATUS here. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qtserialbluetooth.cpp')
-rw-r--r--core/qtserialbluetooth.cpp2
1 files changed, 1 insertions, 1 deletions
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;