Merge "Fix declaration of malloc_usable_size()"

This commit is contained in:
Elliott Hughes 2013-06-05 01:58:26 +00:00 committed by Gerrit Code Review
commit 4c001859fe
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ extern "C" struct mallinfo mallinfo() {
return dlmallinfo(); 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); return dlmalloc_usable_size(mem);
} }

View File

@ -33,7 +33,7 @@ extern void* realloc(void* p, size_t byte_count) __wur;
extern void free(void* p); extern void free(void* p);
extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur; 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* valloc(size_t byte_count) __mallocfunc __wur;
extern void* pvalloc(size_t byte_count) __mallocfunc __wur; extern void* pvalloc(size_t byte_count) __mallocfunc __wur;