diff options
| author | liruncong <[email protected]> | 2018-09-11 19:46:08 +0800 |
|---|---|---|
| committer | liruncong <[email protected]> | 2018-09-11 19:46:08 +0800 |
| commit | f61c2fb8821b5c64bd0da176921014ca504dad9c (patch) | |
| tree | 5fc4e56575d04063081bd3ba58194bf2e9b8b85d /components/libc | |
| parent | 95c36f32e20b9799907890cbb6d366ad783501b1 (diff) | |
armlibc下malloc/realloc/calloc声明同一更正
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/armlibc/mem_std.c | 6 |
1 files 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); } |
