summaryrefslogtreecommitdiffstats
path: root/minadbd/services.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-02-06 04:07:48 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-06 04:07:48 +0100
commit707d321a8745accf4660bf77e33f6acb9ce6b779 (patch)
treea2f4f8069718c1f933e3b4e588bd88b6609de60c /minadbd/services.c
parentam fd84f65d: am f3532072: Merge "minadbd: remove dead code" (diff)
parentam a5d105e2: Merge "recovery: fix building with pointer-to-int errors turned on" (diff)
downloadandroid_bootable_recovery-707d321a8745accf4660bf77e33f6acb9ce6b779.tar
android_bootable_recovery-707d321a8745accf4660bf77e33f6acb9ce6b779.tar.gz
android_bootable_recovery-707d321a8745accf4660bf77e33f6acb9ce6b779.tar.bz2
android_bootable_recovery-707d321a8745accf4660bf77e33f6acb9ce6b779.tar.lz
android_bootable_recovery-707d321a8745accf4660bf77e33f6acb9ce6b779.tar.xz
android_bootable_recovery-707d321a8745accf4660bf77e33f6acb9ce6b779.tar.zst
android_bootable_recovery-707d321a8745accf4660bf77e33f6acb9ce6b779.zip
Diffstat (limited to 'minadbd/services.c')
-rw-r--r--minadbd/services.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minadbd/services.c b/minadbd/services.c
index aef37f7e4..4698528ef 100644
--- a/minadbd/services.c
+++ b/minadbd/services.c
@@ -46,7 +46,7 @@ void *service_bootstrap_func(void *x)
static void sideload_service(int s, void *cookie)
{
unsigned char buf[4096];
- unsigned count = (unsigned) cookie;
+ unsigned count = (unsigned)(uintptr_t)cookie;
int fd;
fprintf(stderr, "sideload_service invoked\n");
@@ -149,7 +149,7 @@ int service_to_fd(const char *name)
int ret = -1;
if (!strncmp(name, "sideload:", 9)) {
- ret = create_service_thread(sideload_service, (void*) atoi(name + 9));
+ ret = create_service_thread(sideload_service, (void*)(uintptr_t)atoi(name + 9));
#if 0
} else if(!strncmp(name, "echo:", 5)){
ret = create_service_thread(echo_service, 0);