Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reduced the scope of dev

  • Loading branch information...
commit e777db10ec1441b5aa3573df2957949af602a07b 1 parent a225525
@Detegr authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ykcore/ykcore_libusb.c
View
3  ykcore/ykcore_libusb.c
@@ -151,12 +151,13 @@ extern int _ykusb_stop(void)
void *_ykusb_open_device(int vendor_id, int *product_ids, size_t pids_len)
{
struct usb_bus *bus;
- struct usb_device *dev, *yk_device;
+ struct usb_device *yk_device;
struct usb_dev_handle *h = NULL;
int rc = YK_EUSBERR;
int found = 0;
for (bus = usb_get_busses(); bus; bus = bus->next) {
+ struct usb_device *dev;
rc = YK_ENOKEY;
for (dev = bus->devices; dev; dev = dev->next) {
if (dev->descriptor.idVendor == vendor_id) {
Please sign in to comment.
Something went wrong with that request. Please try again.