summaryrefslogtreecommitdiff
path: root/uhubctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'uhubctl.c')
-rw-r--r--uhubctl.c2
1 files changed, 1 insertions, 1 deletions
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];