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

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