fix constant not in range of enumerated type
authormrstock <info@niub.it>
Fri, 20 Sep 2019 12:36:07 +0000 (14:36 +0200)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Sat, 21 Sep 2019 17:29:59 +0000 (19:29 +0200)
fix "Integer constant not in range of enumerated type 'enum libusb_transfer_status'"

LIBUSB_ERROR_NO_DEVICE doesn't exist on enum libusb_transfer_status

libusb/sync.c
libusb/version_nano.h

index 70942ac6b2433ac79cb8e38e4c3b2937846a1091..863fe5cb165702fe8d2f58397917574db9fe73bb 100644 (file)
@@ -62,7 +62,7 @@ static void sync_transfer_wait_for_completion(struct libusb_transfer *transfer)
                }
                if (NULL == transfer->dev_handle) {
                        /* transfer completion after libusb_close() */
-                       transfer->status = LIBUSB_ERROR_NO_DEVICE;
+                       transfer->status = LIBUSB_TRANSFER_NO_DEVICE;
                        *completed = 1;
                }
        }
index 695aeea9d40382d5cee34cba89254d1a61db0531..dfa2fc9aca2f8b642a4c19c3110ed72f84ff44d3 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11398
+#define LIBUSB_NANO 11399