diff options
| author | Bernard Xiong <[email protected]> | 2018-09-11 20:52:08 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-11 20:52:08 +0800 |
| commit | b1bbf434a658dac17d984fd3373d63c7f151be99 (patch) | |
| tree | 62bce0d63e940c481f0af9c4648b6e995653b300 /components | |
| parent | 7d3f38e4f6c05df90323a1a392463541fd52d629 (diff) | |
| parent | f61c2fb8821b5c64bd0da176921014ca504dad9c (diff) | |
Merge pull request #1795 from liruncong/armlibc
armlibc下malloc/realloc/calloc函数声明同一更正
Diffstat (limited to 'components')
| -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); } |
