From f61c2fb8821b5c64bd0da176921014ca504dad9c Mon Sep 17 00:00:00 2001 From: liruncong Date: Tue, 11 Sep 2018 19:46:08 +0800 Subject: [PATCH] =?UTF-8?q?armlibc=E4=B8=8Bmalloc/realloc/calloc=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=E5=90=8C=E4=B8=80=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/armlibc/mem_std.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/libc/compilers/armlibc/mem_std.c b/components/libc/compilers/armlibc/mem_std.c index 7fa0033f9d..138ebe9773 100644 --- a/components/libc/compilers/armlibc/mem_std.c +++ b/components/libc/compilers/armlibc/mem_std.c @@ -19,19 +19,19 @@ /* avoid the heap and heap-using library functions supplied by arm */ #pragma import(__use_no_heap) -void *malloc(int n) +void *malloc(size_t n) { return rt_malloc(n); } RTM_EXPORT(malloc); -void *realloc(void *rmem, rt_size_t newsize) +void *realloc(void *rmem, size_t newsize) { return rt_realloc(rmem, newsize); } RTM_EXPORT(realloc); -void *calloc(rt_size_t nelem, rt_size_t elsize) +void *calloc(size_t nelem, size_t elsize) { return rt_calloc(nelem, elsize); }