summaryrefslogtreecommitdiffstats
path: root/minadbd
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-05-05 23:37:53 +0200
committerElliott Hughes <enh@google.com>2015-05-05 23:37:53 +0200
commit921431ffc0dbb3e3277db1215990c693be405276 (patch)
treeaf0567c115e79337ef86bcf178e3a2e296a7bf29 /minadbd
parentMerge "Turn on text display for debuggable builds" (diff)
downloadandroid_bootable_recovery-921431ffc0dbb3e3277db1215990c693be405276.tar
android_bootable_recovery-921431ffc0dbb3e3277db1215990c693be405276.tar.gz
android_bootable_recovery-921431ffc0dbb3e3277db1215990c693be405276.tar.bz2
android_bootable_recovery-921431ffc0dbb3e3277db1215990c693be405276.tar.lz
android_bootable_recovery-921431ffc0dbb3e3277db1215990c693be405276.tar.xz
android_bootable_recovery-921431ffc0dbb3e3277db1215990c693be405276.tar.zst
android_bootable_recovery-921431ffc0dbb3e3277db1215990c693be405276.zip
Diffstat (limited to 'minadbd')
-rw-r--r--minadbd/services.cpp6
1 files 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]);