summaryrefslogtreecommitdiffstats
path: root/minadbd/minadbd_services.cpp
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2016-11-10 02:12:43 +0100
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-11-10 02:12:43 +0100
commitf78a6cb5060298c22a12b1117deb8d1d12d8e129 (patch)
treed94a38c2109de3c09b9ae632cc9c4a92eabf382d /minadbd/minadbd_services.cpp
parentMerge "Touch blocks in care_map in update_verifier" am: 3605a072bc -s ours am: 96c3c32b66 am: b86af2577c (diff)
parentUse static_cast to cast pointers returned by malloc/calloc/realloc/mmap. (diff)
downloadandroid_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.gz
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.bz2
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.lz
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.xz
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.zst
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.zip
Diffstat (limited to 'minadbd/minadbd_services.cpp')
-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;