From 6f517cd7a1142191fde2201b6c529758e7ff6895 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 8 Nov 2019 11:28:38 -0800 Subject: Rename iterate to malloc_iterate internally. I have no idea why I used the iterate name internally which is completely unlike every other function name. Change this to match everyone else so that it's now malloc_iterate everywhere. This is probably the last chance to change this before mainline modules begin, so make everything consistent. Test: Compiles, unit tests passes. Change-Id: I56d293377fa0fe1a3dc3dd85d6432f877cc2003c --- libc/malloc_hooks/malloc_hooks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/malloc_hooks/malloc_hooks.cpp') diff --git a/libc/malloc_hooks/malloc_hooks.cpp b/libc/malloc_hooks/malloc_hooks.cpp index b1c1d5060..1ba869698 100644 --- a/libc/malloc_hooks/malloc_hooks.cpp +++ b/libc/malloc_hooks/malloc_hooks.cpp @@ -67,7 +67,7 @@ void* hooks_calloc(size_t nmemb, size_t bytes); struct mallinfo hooks_mallinfo(); int hooks_mallopt(int param, int value); int hooks_posix_memalign(void** memptr, size_t alignment, size_t size); -int hooks_iterate(uintptr_t base, size_t size, +int hooks_malloc_iterate(uintptr_t base, size_t size, void (*callback)(uintptr_t base, size_t size, void* arg), void* arg); void hooks_malloc_disable(); void hooks_malloc_enable(); @@ -209,7 +209,7 @@ int hooks_posix_memalign(void** memptr, size_t alignment, size_t size) { return g_dispatch->posix_memalign(memptr, alignment, size); } -int hooks_iterate(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*) { +int hooks_malloc_iterate(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*) { return 0; } -- cgit v1.2.3