diff options
author | Elliott Hughes <enh@google.com> | 2014-01-16 10:53:11 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-01-16 12:54:18 -0800 |
commit | ccecf1425412beb2bc3bb38d470293fdc244d6f1 (patch) | |
tree | 9fd922197bc88bed453efa0738f3dfb5d6db4c3c /adb/transport_local.c | |
parent | e847f429f43ae56aaa406697ca603c8469e2100b (diff) | |
download | system_core-ccecf1425412beb2bc3bb38d470293fdc244d6f1.zip system_core-ccecf1425412beb2bc3bb38d470293fdc244d6f1.tar.gz system_core-ccecf1425412beb2bc3bb38d470293fdc244d6f1.tar.bz2 |
system/core 64-bit cleanup.
This cleans up most of the size-related problems in system/core.
There are still a few changes needed for a clean 64-bit build,
but they look like they might require changes to things like the
fastboot protocol.
Change-Id: I1560425a289fa158e13e2e3173cc3e71976f92c0
Diffstat (limited to 'adb/transport_local.c')
-rw-r--r-- | adb/transport_local.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/adb/transport_local.c b/adb/transport_local.c index 1cfa24d..d2dbca6 100644 --- a/adb/transport_local.c +++ b/adb/transport_local.c @@ -159,7 +159,7 @@ static void *server_socket_thread(void * arg) int serverfd, fd; struct sockaddr addr; socklen_t alen; - int port = (int)arg; + int port = (int) (uintptr_t) arg; D("transport: server_socket_thread() starting\n"); serverfd = -1; @@ -241,7 +241,7 @@ static const char _start_req[] = "start"; /* 'ok' reply from the adb QEMUD service. */ static const char _ok_resp[] = "ok"; - const int port = (int)arg; + const int port = (int) (uintptr_t) arg; int res, fd; char tmp[256]; char con_name[32]; @@ -326,7 +326,7 @@ void local_init(int port) D("transport: local %s init\n", HOST ? "client" : "server"); - if(adb_thread_create(&thr, func, (void *)port)) { + if(adb_thread_create(&thr, func, (void *) (uintptr_t) port)) { fatal_errno("cannot create local socket %s thread", HOST ? "client" : "server"); } |