summaryrefslogtreecommitdiffstats
path: root/minadbd/minadbd_services.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-16 19:17:37 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-11-16 19:17:37 +0100
commit0c15140dad24f73226e018d35d405b15b8f5932d (patch)
tree3acc78a6fc526da3f343b95918cb2cfe86bd9a8b /minadbd/minadbd_services.cpp
parentresolve merge conflicts of 4f86f26 to stage-aosp-master (diff)
parentMerge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap." (diff)
downloadandroid_bootable_recovery-0c15140dad24f73226e018d35d405b15b8f5932d.tar
android_bootable_recovery-0c15140dad24f73226e018d35d405b15b8f5932d.tar.gz
android_bootable_recovery-0c15140dad24f73226e018d35d405b15b8f5932d.tar.bz2
android_bootable_recovery-0c15140dad24f73226e018d35d405b15b8f5932d.tar.lz
android_bootable_recovery-0c15140dad24f73226e018d35d405b15b8f5932d.tar.xz
android_bootable_recovery-0c15140dad24f73226e018d35d405b15b8f5932d.tar.zst
android_bootable_recovery-0c15140dad24f73226e018d35d405b15b8f5932d.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;