The set_halfduplex function takes a unsigned int, not a int.

Signed-off-by: Anton Lundin <gla...@acc.umu.se>
---
 core/serial_ftdi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/serial_ftdi.c b/core/serial_ftdi.c
index f982d81..202895c 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;
 
-- 
2.7.4

_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to