]> err.no Git - yubikey-personalization/commitdiff
size_t > ssize_t to match return type
authorKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 07:06:24 +0000 (09:06 +0200)
committerKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 07:06:24 +0000 (09:06 +0200)
ykcore/ykcore_libusb-1.0.c

index 03630a6ac3e3fe9587bfe48d30ab6a05dfa0b0da..f5032ed9af60650810040cb43c79e84398f6d865 100644 (file)
@@ -161,8 +161,8 @@ void *_ykusb_open_device(int vendor_id, int product_id)
        libusb_device_handle *h = NULL;
        struct libusb_device_descriptor desc;
        libusb_device **list;
-       size_t cnt = libusb_get_device_list(usb_ctx, &list);
-       size_t i = 0;
+       ssize_t cnt = libusb_get_device_list(usb_ctx, &list);
+       ssize_t i = 0;
        int rc = YK_ENOKEY;
 
        for (i = 0; i < cnt; i++) {