summaryrefslogtreecommitdiffstats
path: root/minadbd
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@google.com>2016-11-09 22:17:01 +0100
committerTao Bao <tbao@google.com>2016-11-16 08:24:54 +0100
commitb29f23f7e7c791e7d8786de93d630a12e4250c71 (patch)
tree7c5ac472f60ca965c98eb2cf547f8685bcdd3101 /minadbd
parentMerge "updater: Fix the wrong return value for package_extract_file()." (diff)
downloadandroid_bootable_recovery-b29f23f7e7c791e7d8786de93d630a12e4250c71.tar
android_bootable_recovery-b29f23f7e7c791e7d8786de93d630a12e4250c71.tar.gz
android_bootable_recovery-b29f23f7e7c791e7d8786de93d630a12e4250c71.tar.bz2
android_bootable_recovery-b29f23f7e7c791e7d8786de93d630a12e4250c71.tar.lz
android_bootable_recovery-b29f23f7e7c791e7d8786de93d630a12e4250c71.tar.xz
android_bootable_recovery-b29f23f7e7c791e7d8786de93d630a12e4250c71.tar.zst
android_bootable_recovery-b29f23f7e7c791e7d8786de93d630a12e4250c71.zip
Diffstat (limited to 'minadbd')
-rw-r--r--minadbd/minadbd_services.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minadbd/minadbd_services.cpp b/minadbd/minadbd_services.cpp
index 003b51913..426d982eb 100644
--- a/minadbd/minadbd_services.cpp
+++ b/minadbd/minadbd_services.cpp
@@ -66,7 +66,7 @@ static int create_service_thread(void (*func)(int, void *), void *cookie) {
return -1;
}
- stinfo* sti = reinterpret_cast<stinfo*>(malloc(sizeof(stinfo)));
+ stinfo* sti = static_cast<stinfo*>(malloc(sizeof(stinfo)));
if(sti == 0) fatal("cannot allocate stinfo");
sti->func = func;
sti->cookie = cookie;