From 1f25bb7ff06e3864e8238ec118958d23800d7865 Mon Sep 17 00:00:00 2001 From: Mikolaj Kucharski Date: Fri, 1 Jan 2021 15:43:29 +0000 Subject: [PATCH] libusb/core.c: bump DISCOVERED_DEVICES_SIZE_STEP to 16 On OpenBSD USB controllers are shown as normal devices, making the initial limit too small. On a recent machine this value is almost always exceeded, so bump it. Change committed to OpenBSD ports tree by Matthias Kilian on Tue Jun 19 21:10:59 2012 UTC Closes #835 Signed-off-by: Chris Dickens --- libusb/core.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/core.c b/libusb/core.c index 701f981..0352f1d 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -633,7 +633,7 @@ libusb_free_device_list(list, 1); * which grows when required. it can be freed once discovery has completed, * eliminating the need for a list node in the libusb_device structure * itself. */ -#define DISCOVERED_DEVICES_SIZE_STEP 8 +#define DISCOVERED_DEVICES_SIZE_STEP 16 static struct discovered_devs *discovered_devs_alloc(void) { diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 903cd6f..083861c 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11594 +#define LIBUSB_NANO 11595 -- 2.7.4