From e0fe8762c2e76ab6739cc10bba73f66a26fedaf8 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sun, 18 Sep 2016 14:50:41 +0200 Subject: Fix warning about incompatible pointer The set_halfduplex function takes a unsigned int, not a int. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- core/serial_ftdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/serial_ftdi.c') 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; -- cgit v1.2.3-70-g09d2