From: Richard Levitte Date: Sun, 13 Sep 2009 09:57:52 +0000 (+0000) Subject: Fix signedness warnings. X-Git-Tag: yubikey-personalisation_1.3.5-1~4^2~58 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26fabb6aa0fbd30a6fd3a4cb43857331b4d67349;p=yubikey-personalization.old Fix signedness warnings. Remove unused variable. --- diff --git a/ykcore/ykcore_libusb-1.0.c b/ykcore/ykcore_libusb-1.0.c index e7d04e5..7fc9aee 100644 --- a/ykcore/ykcore_libusb-1.0.c +++ b/ykcore/ykcore_libusb-1.0.c @@ -73,7 +73,7 @@ int _ykusb_write(void *dev, int report_type, int report_number, LIBUSB_ENDPOINT_OUT, HID_SET_REPORT, report_type << 8 | report_number, 0, - buffer, size, + (unsigned char *)buffer, size, 1000); /* preserve a control message error over an interface release one */ @@ -118,8 +118,8 @@ int _ykusb_read(void *dev, int report_type, int report_number, LIBUSB_ENDPOINT_IN, HID_GET_REPORT, report_type << 8 | report_number, 0, - buffer, size, - 1000); + (unsigned char *)buffer, size, + 1000); /* preserve a control message error over an interface release one */ rc2 = libusb_release_interface((libusb_device_handle *)dev, 0); @@ -134,7 +134,6 @@ int _ykusb_read(void *dev, int report_type, int report_number, int _ykusb_start(void) { - int rc; libusb_init(NULL); return 1; }