mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
93ef223a31
commit
3ea15febfa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue