summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-04-28 00:28:32 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-04-28 00:28:32 +0000
commit8ae2148ff89f52617fd59583b56b4a7b8aa49b58 (patch)
treeda6985823a717237de4abd4e9341677c51d55fb6 /libc/malloc_hooks
parente58869ff06a0541172c60dfff5cf0b293be16049 (diff)
parente378efead8c80cb79f4367749931434c69d09749 (diff)
Merge "malloc_hooks README.md: fix example compilation failures" am: 5057c42012 am: 2231771931 am: d4154bcebe am: e378efead8
Change-Id: Ie0caf9cf61d9b0f40210d96f860afafea8f964fd
Diffstat (limited to 'libc/malloc_hooks')
-rw-r--r--libc/malloc_hooks/README.md4
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