diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-09-18 07:41:55 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-09-18 07:41:55 -0700 |
commit | 3ea15febfae811dc7bbdf23a0965088f2548032f (patch) | |
tree | cf4f2e1e2878682f998a48cfd0ac16e038c57df6 /core | |
parent | 93ef223a3131db838abc7c390ddce3fae8be5f7c (diff) | |
download | subsurface-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')
-rw-r--r-- | core/qtserialbluetooth.cpp | 2 |
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; |