Merge "malloc_hooks README.md: fix example compilation failures"

This commit is contained in:
Treehugger Robot 2020-04-27 23:29:41 +00:00 committed by Gerrit Code Review
commit 5057c42012

View file

@ -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