adb: Adjust usb_linux.c for changes in libusbhost API.
Change-Id: Ie63e4455460100b579fa87120e63c913dc5f16ad
Signed-off-by: Mike Lockwood <lockwood@android.com>
diff --git a/adb/usb_linux.c b/adb/usb_linux.c
index 4b5edb6..7e510df 100644
--- a/adb/usb_linux.c
+++ b/adb/usb_linux.c
@@ -79,7 +79,7 @@
return 0;
}
-static void kick_disconnected_device(const char *devname)
+static void kick_disconnected_device(const char *devname, void *client_data)
{
usb_handle *usb;
@@ -202,7 +202,7 @@
free(usb);
}
-static void check_usb_device(const char *devname) {
+static void check_usb_device(const char *devname, void *client_data) {
struct usb_device *device;
struct usb_descriptor_iter iter;
struct usb_descriptor_header* header;
@@ -461,7 +461,7 @@
{
struct sigaction actions;
- if (usb_host_init(check_usb_device, kick_disconnected_device))
+ if (usb_host_init(check_usb_device, kick_disconnected_device, NULL))
fatal_errno("usb_host_init failed\n");
memset(&actions, 0, sizeof(actions));