diff options
author | Peter Mitsis <peter.mitsis@windriver.com> | 2016-10-13 13:26:25 -0400 |
---|---|---|
committer | Benjamin Walsh <benjamin.walsh@windriver.com> | 2016-10-21 15:33:58 +0000 |
commit | 5f39924e58ef8792204132bcbf415b347a6901d0 (patch) | |
tree | 7b4f91f11f25c16cb770d248bae4f93dd6835aad /kernel | |
parent | fb02d576c01a307c805c92f449944f89fd069470 (diff) |
unified: memory pool APIs to use size_t
Change-Id: Id1dd37ad3bb35052fd53a6a26711c9e0c2070a25
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/unified/mem_pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/unified/mem_pool.c b/kernel/unified/mem_pool.c index 3d6b1a92e..8bf8b066c 100644 --- a/kernel/unified/mem_pool.c +++ b/kernel/unified/mem_pool.c @@ -477,7 +477,7 @@ void k_mem_pool_defrag(struct k_mem_pool *pool) } int k_mem_pool_alloc(struct k_mem_pool *pool, struct k_mem_block *block, - int size, int32_t timeout) + size_t size, int32_t timeout) { char *found_block; int offset; @@ -526,7 +526,7 @@ int k_mem_pool_alloc(struct k_mem_pool *pool, struct k_mem_block *block, #define MALLOC_ALIGN (sizeof(uint32_t)) -void *k_malloc(uint32_t size) +void *k_malloc(size_t size) { uint32_t new_size; uint32_t *aligned_addr; |