summaryrefslogtreecommitdiffstats
path: root/core/serial_ftdi.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2016-09-18 14:50:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-18 07:11:45 -0700
commite0fe8762c2e76ab6739cc10bba73f66a26fedaf8 (patch)
tree8436ebcf1713310fc25b754ed79d7027ca74606b /core/serial_ftdi.c
parentf9cd09b000596270830dd05de0fa1dbb1e6254f0 (diff)
downloadsubsurface-e0fe8762c2e76ab6739cc10bba73f66a26fedaf8.tar.gz
Fix warning about incompatible pointer
The set_halfduplex function takes a unsigned int, not a int. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/serial_ftdi.c')
-rw-r--r--core/serial_ftdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/serial_ftdi.c b/core/serial_ftdi.c
index f982d81c7..202895cc0 100644
--- a/core/serial_ftdi.c
+++ b/core/serial_ftdi.c
@@ -350,7 +350,7 @@ static dc_status_t serial_ftdi_set_timeout (void **userdata, long timeout)
return DC_STATUS_SUCCESS;
}
-static dc_status_t serial_ftdi_set_halfduplex (void **userdata, int value)
+static dc_status_t serial_ftdi_set_halfduplex (void **userdata, unsigned int value)
{
ftdi_serial_t *device = (ftdi_serial_t*) *userdata;