From bb0e786aa5dc502c44d4090e1b7ccf12f77f9862 Mon Sep 17 00:00:00 2001 From: shakemid Date: Thu, 31 Aug 2017 11:08:33 +0900 Subject: [PATCH] Fix to supress gcc warnings --- pcsensor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcsensor.c b/pcsensor.c index cf953df..7b9ee06 100644 --- a/pcsensor.c +++ b/pcsensor.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -153,7 +154,7 @@ void ini_control_transfer(libusb_device_handle *dev) { char question[] = { 0x01,0x01 }; - r = libusb_control_transfer(dev, 0x21, 0x09, 0x0201, 0x00, (char *) question, 2, timeout); + r = libusb_control_transfer(dev, 0x21, 0x09, 0x0201, 0x00, (unsigned char *) question, 2, timeout); if( r < 0 ) { perror("USB control write"); bad("USB write failed"); } @@ -171,7 +172,7 @@ void control_transfer(libusb_device_handle *dev, const char *pquestion) { memcpy(question, pquestion, sizeof question); - r = libusb_control_transfer(dev, 0x21, 0x09, 0x0200, 0x01, (char *) question, reqIntLen, timeout); + r = libusb_control_transfer(dev, 0x21, 0x09, 0x0200, 0x01, (unsigned char *) question, reqIntLen, timeout); if( r < 0 ) { perror("USB control write"); bad("USB write failed"); }