diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-29 02:08:47 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-29 02:08:47 +0000 |
commit | 30b2322a53e5eb984b9257f0dfbbb80c0ce5dcb4 (patch) | |
tree | ed46ae0895da1a7794dc563811a6b4ac56b4b90f /libc/malloc_hooks | |
parent | e8fa8814bea9c921d87259207a3851f09531aada (diff) | |
parent | b7bd61f74b2e892e988f463a5350feabdcff216b (diff) |
Snap for 6440943 from b7bd61f74b2e892e988f463a5350feabdcff216b to sc-release
Change-Id: Ib3d706671d9c500f90a49d2fde7d45b9d4e5dea8
Diffstat (limited to 'libc/malloc_hooks')
-rw-r--r-- | libc/malloc_hooks/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/malloc_hooks/README.md b/libc/malloc_hooks/README.md index b418e1ef4..1747e8d41 100644 --- a/libc/malloc_hooks/README.md +++ b/libc/malloc_hooks/README.md @@ -74,11 +74,11 @@ Example Implementation ====================== Below is a simple implementation intercepting only malloc/calloc calls. - void* new_malloc_hook(size_t bytes, const char* arg) { + void* new_malloc_hook(size_t bytes, const void* arg) { return orig_malloc_hook(bytes, arg); } - void orig_malloc_hook = __malloc_hook; + auto orig_malloc_hook = __malloc_hook; __malloc_hook = new_malloc_hook; Enabling Examples |