hotplug: Cast ssize_t to int in error path to avoid compiler warning

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
Chris Dickens
2017-12-28 22:51:28 -08:00
parent 96b89f90d3
commit db00b074b2
2 changed files with 2 additions and 2 deletions

View File

@@ -300,7 +300,7 @@ int API_EXPORTED libusb_hotplug_register_callback(libusb_context *ctx,
if (len < 0) {
libusb_hotplug_deregister_callback(ctx,
new_callback->handle);
return len;
return (int)len;
}
for (i = 0; i < len; i++) {

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11240
#define LIBUSB_NANO 11241