commit | 25a87f7641f066437d15c6d3148d08a6ab9be231 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@android.com> | Thu May 23 10:02:02 2013 +0200 |
committer | David 'Digit' Turner <digit@android.com> | Thu May 23 10:02:02 2013 +0200 |
tree | 3262eadfdc8af97fdd9380d12ed4f53c185aefc5 | |
parent | f5f29de6ae5a0b74234f111b5691a1e5588671cb [diff] [blame] |
Fix declaration of malloc_usable_size() The function should take a 'const void*' parameter, instead of 'void*'. Note that the implementation in upstream-dlmalloc/malloc.c already does this. For context, see http://b.android.com/55725 Change-Id: Iefd55cdb8996699189e0545f9195972490306227
diff --git a/libc/bionic/malloc_debug_common.cpp b/libc/bionic/malloc_debug_common.cpp index f6fa83c..9cc84c3 100644 --- a/libc/bionic/malloc_debug_common.cpp +++ b/libc/bionic/malloc_debug_common.cpp
@@ -190,7 +190,7 @@ return dlmallinfo(); } -extern "C" size_t malloc_usable_size(void* mem) { +extern "C" size_t malloc_usable_size(const void* mem) { return dlmalloc_usable_size(mem); }