OSDN Git Service

Fix declaration of malloc_usable_size()
authorDavid 'Digit' Turner <digit@android.com>
Thu, 23 May 2013 08:02:02 +0000 (10:02 +0200)
committerDavid 'Digit' Turner <digit@android.com>
Thu, 23 May 2013 08:02:02 +0000 (10:02 +0200)
commit25a87f7641f066437d15c6d3148d08a6ab9be231
tree3262eadfdc8af97fdd9380d12ed4f53c185aefc5
parentf5f29de6ae5a0b74234f111b5691a1e5588671cb
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
libc/bionic/malloc_debug_common.cpp
libc/include/malloc.h