From 921431ffc0dbb3e3277db1215990c693be405276 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 5 May 2015 14:37:53 -0700 Subject: Track adb_thread_create API change. Change-Id: Ia3f30f3ba85c0246d4b667fb7723cfcdce299d4a --- minadbd/services.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/minadbd/services.cpp b/minadbd/services.cpp index dd1fd7c4b..859463caf 100644 --- a/minadbd/services.cpp +++ b/minadbd/services.cpp @@ -61,8 +61,7 @@ static void sideload_host_service(int sfd, void* data) { exit(result == 0 ? 0 : 1); } -static int create_service_thread(void (*func)(int, void *), void *cookie) -{ +static int create_service_thread(void (*func)(int, void *), void *cookie) { int s[2]; if(adb_socketpair(s)) { printf("cannot create service socket pair\n"); @@ -75,8 +74,7 @@ static int create_service_thread(void (*func)(int, void *), void *cookie) sti->cookie = cookie; sti->fd = s[1]; - adb_thread_t t; - if (adb_thread_create( &t, service_bootstrap_func, sti)){ + if (!adb_thread_create(service_bootstrap_func, sti)) { free(sti); adb_close(s[0]); adb_close(s[1]); -- cgit v1.2.3