summaryrefslogtreecommitdiffstats
path: root/core/qtserialbluetooth.cpp
diff options
context:
space:
mode:
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;