From da7f1e8406e1efaf47d5b660a3b04440c0bb16e9 Mon Sep 17 00:00:00 2001 From: "levitte@gmail.com" Date: Sun, 13 Sep 2009 09:57:52 +0000 Subject: [PATCH] Fix signedness warnings. Remove unused variable. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@195 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- ykcore/ykcore_libusb-1.0.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } -- 2.39.5