core: Fix handle_events return code on hotplug pipe read error
authorHans de Goede <hdegoede@redhat.com>
Fri, 17 May 2013 08:07:25 +0000 (10:07 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 17 May 2013 08:07:25 +0000 (10:07 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/io.c
libusb/version_nano.h

index aaf4b74..b8b31f7 100644 (file)
@@ -1949,7 +1949,7 @@ static int handle_events(struct libusb_context *ctx, struct timeval *tv)
                if (ret < sizeof(message)) {
                        usbi_err(ctx, "hotplug pipe read error %d < %d",
                                 ret, sizeof(message));
-                       ret = LIBUSB_ERROR_OTHER;
+                       r = LIBUSB_ERROR_OTHER;
                        goto handled;
                }
 
index f40e9eb..fa29883 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10695
+#define LIBUSB_NANO 10696