summaryrefslogtreecommitdiffstats
path: root/minadbd/minadbd_services.cpp
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@google.com>2016-11-09 01:06:13 +0100
committerRahul Chaudhry <rahulchaudhry@google.com>2016-11-09 01:34:01 +0100
commit4f7faac8d705317271e1d6aa773f00f05ca70848 (patch)
treeb1c1b9cd076b26723d7455b3880052250d270ac8 /minadbd/minadbd_services.cpp
parentMerge "Make make_parent() to take const argument" am: 52e2a97aa7 am: 1fd9f0aff7 am: 260573b3c2 (diff)
downloadandroid_bootable_recovery-4f7faac8d705317271e1d6aa773f00f05ca70848.tar
android_bootable_recovery-4f7faac8d705317271e1d6aa773f00f05ca70848.tar.gz
android_bootable_recovery-4f7faac8d705317271e1d6aa773f00f05ca70848.tar.bz2
android_bootable_recovery-4f7faac8d705317271e1d6aa773f00f05ca70848.tar.lz
android_bootable_recovery-4f7faac8d705317271e1d6aa773f00f05ca70848.tar.xz
android_bootable_recovery-4f7faac8d705317271e1d6aa773f00f05ca70848.tar.zst
android_bootable_recovery-4f7faac8d705317271e1d6aa773f00f05ca70848.zip
Diffstat (limited to '')
-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;