From: Klas Lindfors Date: Tue, 18 Sep 2012 07:06:24 +0000 (+0200) Subject: size_t > ssize_t to match return type X-Git-Tag: v1.8.0~51 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd09d7f5f78fc6e6e2eb1b01759684ea5b997f99;p=yubikey-personalization size_t > ssize_t to match return type --- diff --git a/ykcore/ykcore_libusb-1.0.c b/ykcore/ykcore_libusb-1.0.c index 03630a6..f5032ed 100644 --- a/ykcore/ykcore_libusb-1.0.c +++ b/ykcore/ykcore_libusb-1.0.c @@ -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++) {