aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/malloc.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2013-05-23 10:02:02 +0200
committerDavid 'Digit' Turner <digit@android.com>2013-05-23 10:02:02 +0200
commit25a87f7641f066437d15c6d3148d08a6ab9be231 (patch)
tree3262eadfdc8af97fdd9380d12ed4f53c185aefc5 /libc/include/malloc.h
parentf5f29de6ae5a0b74234f111b5691a1e5588671cb (diff)
downloadandroid_bionic-25a87f7641f066437d15c6d3148d08a6ab9be231.tar.gz
android_bionic-25a87f7641f066437d15c6d3148d08a6ab9be231.tar.bz2
android_bionic-25a87f7641f066437d15c6d3148d08a6ab9be231.zip
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
Diffstat (limited to 'libc/include/malloc.h')
-rw-r--r--libc/include/malloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/malloc.h b/libc/include/malloc.h
index 8875e542d..eaedc4925 100644
--- a/libc/include/malloc.h
+++ b/libc/include/malloc.h
@@ -33,7 +33,7 @@ extern void* realloc(void* p, size_t byte_count) __wur;
extern void free(void* p);
extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur;
-extern size_t malloc_usable_size(void* p);
+extern size_t malloc_usable_size(const void* p);
extern void* valloc(size_t byte_count) __mallocfunc __wur;
extern void* pvalloc(size_t byte_count) __mallocfunc __wur;