From 7cff70c851c1e9eee88daa8fffa7bed51f4bff5a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 24 Apr 2008 22:49:37 +0000 Subject: [PATCH] 2008-04-24 Mike Frysinger * src/tap/usbconn/libusb.c (usbconn_libusb_connect): Use the usb_get_busses() function rather than the usb_busses global variable due to portability issues (like with libusb-win32). git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1180 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 6 ++++++ jtag/src/tap/usbconn/libusb.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index d5bb887e..7a9ca093 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,9 @@ +2008-04-24 Mike Frysinger + + * src/tap/usbconn/libusb.c (usbconn_libusb_connect): Use the + usb_get_busses() function rather than the usb_busses global + variable due to portability issues (like with libusb-win32). + 2008-04-19 Kolja Waschk * src/tap/parport/ftd2xx.c: SetBaudRate to 3E6, not 48E6. Should diff --git a/jtag/src/tap/usbconn/libusb.c b/jtag/src/tap/usbconn/libusb.c index 60625d51..09ff8f45 100644 --- a/jtag/src/tap/usbconn/libusb.c +++ b/jtag/src/tap/usbconn/libusb.c @@ -121,7 +121,7 @@ usbconn_libusb_connect( const char **param, int paramc, usbconn_cable_t *templat return NULL; } - for (bus = usb_busses; bus && !found_dev; bus = bus->next) + for (bus = usb_get_busses(); bus && !found_dev; bus = bus->next) { struct usb_device *dev;