summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--uhubctl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index cbea9cb..ea28edc 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ This utility was tested to compile and work on Linux
It should be possible to compile it for Windows as well -
please report if you succeed in doing that.
-First, you need to install library libusb-1.0 (version 1.0.16 or later):
+First, you need to install library libusb-1.0 (version 1.0.12 or later):
* Ubuntu: sudo apt-get install libusb-1.0-0-dev
* Redhat: sudo yum install libusb1-devel
diff --git a/uhubctl.c b/uhubctl.c
index 53cba40..0ab4e9d 100644
--- a/uhubctl.c
+++ b/uhubctl.c
@@ -331,7 +331,7 @@ static int usb_find_hubs()
int bus = libusb_get_bus_number(dev);
sprintf(hubs[hub_count].location, "%d", bus);
- int pcount = libusb_get_port_numbers(dev, port_numbers, MAX_HUB_CHAIN);
+ int pcount = libusb_get_port_path(NULL, dev, port_numbers, MAX_HUB_CHAIN);
int k;
for (k=0; k<pcount; k++) {
char s[8];