diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-04-28 00:38:19 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-04-28 00:38:19 +0000 |
commit | fbf1a12d85d5ce03d0c9370f248ad8ce6af57fc3 (patch) | |
tree | ce3ef9b0b399c82bc840cac358a296b277819557 /libc/malloc_hooks | |
parent | d0095e266d390c6c7caea4525ccdb99391cf92a2 (diff) | |
parent | 8ae2148ff89f52617fd59583b56b4a7b8aa49b58 (diff) |
Merge "malloc_hooks README.md: fix example compilation failures" am: 5057c42012 am: 2231771931 am: d4154bcebe am: e378efead8 am: 8ae2148ff8
Change-Id: I4f1068e656fad05fdf924bf18116d41c8b26fb64
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 |