Skip to content

Commit

Permalink
libticables: fix compiler error in the libusb 0.1.x backend, struct u…
Browse files Browse the repository at this point in the history
…sb_device missing 'struct' keyword.
  • Loading branch information
spongus711 authored and debrouxl committed Nov 12, 2023
1 parent c57bd5d commit dab8afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libticables/trunk/src/linux/link_usb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ static int tigl_open(int id, usb_dev_handle **udh)
return ERR_LIBUSB_OPEN;
}

*udh = usb_open((usb_device *)(tigl_devices[id].dev));
*udh = usb_open((struct usb_device *)(tigl_devices[id].dev));
if (*udh != NULL)
{
/* only one configuration: #1 */
Expand Down Expand Up @@ -510,7 +510,7 @@ static int slv_open(CableHandle *h)
return ret;
}
cable_info = tigl_devices[h->address];
uDev = (usb_device *)(tigl_devices[h->address].dev);
uDev = (struct usb_device *)(tigl_devices[h->address].dev);
uInEnd = 0x81;
uOutEnd = 0x02;

Expand Down

0 comments on commit dab8afe

Please sign in to comment.