summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrstock <info@niub.it>2019-09-20 14:36:07 +0200
committerLudovic Rousseau <ludovic.rousseau@free.fr>2019-09-21 19:29:59 +0200
commit906e706f8abdff626370e59b880f340cf54e3632 (patch)
treeee24ae4fb9b75043a15f0271815f7194ac6e41e5
parent0c4f65ab0cfe393ebd7d515e2b01316c64548ae1 (diff)
downloadlibusb-906e706f8abdff626370e59b880f340cf54e3632.tar.gz
fix constant not in range of enumerated type
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
-rw-r--r--libusb/sync.c2
-rw-r--r--libusb/version_nano.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/sync.c b/libusb/sync.c
index 70942ac..863fe5c 100644
--- a/libusb/sync.c
+++ b/libusb/sync.c
@@ -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;
}
}
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 695aeea..dfa2fc9 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11398
+#define LIBUSB_NANO 11399