diff options
author | Narayan Kamath <narayan@google.com> | 2014-03-27 12:50:58 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-03-27 12:50:58 +0000 |
commit | 22d074643ed0d010ebfdb0fca685d65eb2632e58 (patch) | |
tree | 46ed3de2ff7e9e33f5d5cc0861fa4e052fdc58e7 /libs/usb/tests | |
parent | 68d43e275efae8f7b83388ea6fdebbcf5cd1504f (diff) | |
parent | eaab4df0ddadf313ab6b3c832896003968525091 (diff) | |
download | frameworks_base-22d074643ed0d010ebfdb0fca685d65eb2632e58.zip frameworks_base-22d074643ed0d010ebfdb0fca685d65eb2632e58.tar.gz frameworks_base-22d074643ed0d010ebfdb0fca685d65eb2632e58.tar.bz2 |
resolved conflicts for merge of eaab4df0 to klp-modular-dev-plus-aosp
Change-Id: I871431e5a3ce45a33563ced845e044d37471689b
Diffstat (limited to 'libs/usb/tests')
-rw-r--r-- | libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c b/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c index 06b477f..57c0320 100644 --- a/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c +++ b/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c @@ -32,7 +32,7 @@ struct usb_device *sDevice = NULL; static void* read_thread(void* arg) { - int endpoint = (int)arg; + int endpoint = (int)(uintptr_t)arg; int ret = 0; while (sDevice && ret >= 0) { @@ -52,7 +52,7 @@ static void* read_thread(void* arg) { } static void* write_thread(void* arg) { - int endpoint = (int)arg; + int endpoint = (int)(uintptr_t)arg; int ret = 0; while (ret >= 0) { @@ -136,11 +136,11 @@ static int usb_device_added(const char *devname, void* client_data) { } if ((ep1->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) { - pthread_create(&th, NULL, read_thread, (void *)ep1->bEndpointAddress); - pthread_create(&th, NULL, write_thread, (void *)ep2->bEndpointAddress); + pthread_create(&th, NULL, read_thread, (void *)(uintptr_t)ep1->bEndpointAddress); + pthread_create(&th, NULL, write_thread, (void *)(uintptr_t)ep2->bEndpointAddress); } else { - pthread_create(&th, NULL, read_thread, (void *)ep2->bEndpointAddress); - pthread_create(&th, NULL, write_thread, (void *)ep1->bEndpointAddress); + pthread_create(&th, NULL, read_thread, (void *)(uintptr_t)ep2->bEndpointAddress); + pthread_create(&th, NULL, write_thread, (void *)(uintptr_t)ep1->bEndpointAddress); } } else { printf("Found possible android device - attempting to switch to accessory mode\n"); |