libusb/core.c: bump DISCOVERED_DEVICES_SIZE_STEP to 16
authorMikolaj Kucharski <mikolaj@kucharski.name>
Fri, 1 Jan 2021 15:43:29 +0000 (15:43 +0000)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 15 Jan 2021 16:01:53 +0000 (08:01 -0800)
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 <kili@openbsd.org>
on Tue Jun 19 21:10:59 2012 UTC

Closes #835

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/core.c
libusb/version_nano.h

index 701f981..0352f1d 100644 (file)
@@ -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)
 {
index 903cd6f..083861c 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11594
+#define LIBUSB_NANO 11595