]> err.no Git - yubikey-personalization.old/commitdiff
Fix signedness warnings.
authorRichard Levitte <levitte@lp.se>
Sun, 13 Sep 2009 09:57:52 +0000 (09:57 +0000)
committerRichard Levitte <levitte@lp.se>
Sun, 13 Sep 2009 09:57:52 +0000 (09:57 +0000)
Remove unused variable.

ykcore/ykcore_libusb-1.0.c

index e7d04e53867b745817b51be5de064ab61f6dc193..7fc9aee5a0b47c6544a0cc0336c9b3ffd0ff8740 100644 (file)
@@ -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;
 }