diff options
author | Tao Bao <tbao@google.com> | 2016-11-16 19:25:16 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-11-16 19:25:16 +0100 |
commit | b8c4ae9f806ccff6447c29dd61154a374c5af398 (patch) | |
tree | 5843939ddc11042ae3d8519ae2a897e2cbad2087 /minadbd | |
parent | resolve merge conflicts of 4f86f26 to stage-aosp-master (diff) | |
parent | Merge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap." (diff) | |
download | android_bootable_recovery-b8c4ae9f806ccff6447c29dd61154a374c5af398.tar android_bootable_recovery-b8c4ae9f806ccff6447c29dd61154a374c5af398.tar.gz android_bootable_recovery-b8c4ae9f806ccff6447c29dd61154a374c5af398.tar.bz2 android_bootable_recovery-b8c4ae9f806ccff6447c29dd61154a374c5af398.tar.lz android_bootable_recovery-b8c4ae9f806ccff6447c29dd61154a374c5af398.tar.xz android_bootable_recovery-b8c4ae9f806ccff6447c29dd61154a374c5af398.tar.zst android_bootable_recovery-b8c4ae9f806ccff6447c29dd61154a374c5af398.zip |
Diffstat (limited to 'minadbd')
-rw-r--r-- | minadbd/minadbd_services.cpp | 2 |
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; |