Blame SOURCES/0001-fix-constant-not-in-range-of-enumerated-type.patch

d5e699
From 41b71fbf664efd6ba8a5233dfd1a1fca15228908 Mon Sep 17 00:00:00 2001
d5e699
From: mrstock <info@niub.it>
d5e699
Date: Fri, 20 Sep 2019 14:36:07 +0200
d5e699
Subject: [PATCH 01/10] fix constant not in range of enumerated type
d5e699
d5e699
fix "Integer constant not in range of enumerated type 'enum libusb_transfer_status'"
d5e699
d5e699
LIBUSB_ERROR_NO_DEVICE doesn't exist on enum libusb_transfer_status
d5e699
d5e699
(cherry picked from commit 906e706f8abdff626370e59b880f340cf54e3632)
d5e699
---
d5e699
 libusb/sync.c         | 2 +-
d5e699
 libusb/version_nano.h | 2 +-
d5e699
 2 files changed, 2 insertions(+), 2 deletions(-)
d5e699
d5e699
diff --git a/libusb/sync.c b/libusb/sync.c
d5e699
index 70942ac..863fe5c 100644
d5e699
--- a/libusb/sync.c
d5e699
+++ b/libusb/sync.c
d5e699
@@ -62,7 +62,7 @@ static void sync_transfer_wait_for_completion(struct libusb_transfer *transfer)
d5e699
 		}
d5e699
 		if (NULL == transfer->dev_handle) {
d5e699
 			/* transfer completion after libusb_close() */
d5e699
-			transfer->status = LIBUSB_ERROR_NO_DEVICE;
d5e699
+			transfer->status = LIBUSB_TRANSFER_NO_DEVICE;
d5e699
 			*completed = 1;
d5e699
 		}
d5e699
 	}
d5e699
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
d5e699
index 02179a4..dfa2fc9 100644
d5e699
--- a/libusb/version_nano.h
d5e699
+++ b/libusb/version_nano.h
d5e699
@@ -1 +1 @@
d5e699
-#define LIBUSB_NANO 11397
d5e699
+#define LIBUSB_NANO 11399
d5e699
-- 
d5e699
2.26.1
d5e699