summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-04-28 00:15:45 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-04-28 00:15:45 +0000
commite378efead8c80cb79f4367749931434c69d09749 (patch)
treeda6985823a717237de4abd4e9341677c51d55fb6 /libc/malloc_hooks
parentb6c229a8df190bb2a7ef116a3d65e8292e5f6e4f (diff)
parentd4154bcebe38cf5e66c1fd4a11960fc846c7c34c (diff)
Merge "malloc_hooks README.md: fix example compilation failures" am: 5057c42012 am: 2231771931 am: d4154bcebe
Change-Id: I79803bf9f35d0e1cb565ff2d01003c7c69c85275
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