Revert "adb: Adjust usb_linux.c for changes in libusbhost API."
This reverts commit 36b99e4cac.
This commit is contained in:
parent
bd6e87693f
commit
27e95c1daf
1 changed files with 3 additions and 3 deletions
|
|
@ -79,7 +79,7 @@ static int known_device(const char *dev_name)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void kick_disconnected_device(const char *devname, void *client_data)
|
||||
static void kick_disconnected_device(const char *devname)
|
||||
{
|
||||
usb_handle *usb;
|
||||
|
||||
|
|
@ -202,7 +202,7 @@ fail:
|
|||
free(usb);
|
||||
}
|
||||
|
||||
static void check_usb_device(const char *devname, void *client_data) {
|
||||
static void check_usb_device(const char *devname) {
|
||||
struct usb_device *device;
|
||||
struct usb_descriptor_iter iter;
|
||||
struct usb_descriptor_header* header;
|
||||
|
|
@ -461,7 +461,7 @@ void usb_init()
|
|||
{
|
||||
struct sigaction actions;
|
||||
|
||||
if (usb_host_init(check_usb_device, kick_disconnected_device, NULL))
|
||||
if (usb_host_init(check_usb_device, kick_disconnected_device))
|
||||
fatal_errno("usb_host_init failed\n");
|
||||
|
||||
memset(&actions, 0, sizeof(actions));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue