hotplug: Cast ssize_t to int in error path to avoid compiler warning
authorChris Dickens <christopher.a.dickens@gmail.com>
Fri, 29 Dec 2017 06:51:28 +0000 (22:51 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 29 Dec 2017 06:51:28 +0000 (22:51 -0800)
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/hotplug.c
libusb/version_nano.h

index 508c9a1..a4320bc 100644 (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++) {
index b17a0ea..a7a3fd8 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11240
+#define LIBUSB_NANO 11241