Skip to content

Commit

Permalink
core: mem - use size_t for tlsf memory management functions
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jun 8, 2016
1 parent 7a5c95d commit 587e24a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mem/tlsf_malloc.c
Expand Up @@ -1370,7 +1370,7 @@ static tlsf_t _tlsf_shm_block = 0;

/*SHM wrappers to sync the access to memory block*/
#ifdef DBG_TLSF_MALLOC
void* tlsf_shm_malloc(void* tlsfmp, unsigned long size,
void* tlsf_shm_malloc(void* tlsfmp, size_t size,
const char* file, const char* func, unsigned int line, const char* mname)
{
void *r;
Expand All @@ -1379,7 +1379,7 @@ void* tlsf_shm_malloc(void* tlsfmp, unsigned long size,
shm_unlock();
return r;
}
void* tlsf_shm_realloc(void* tlsfmp, void* p, unsigned long size,
void* tlsf_shm_realloc(void* tlsfmp, void* p, size_t size,
const char* file, const char* func, unsigned int line, const char* mname)
{
void *r;
Expand All @@ -1388,7 +1388,7 @@ void* tlsf_shm_realloc(void* tlsfmp, void* p, unsigned long size,
shm_unlock();
return r;
}
void* tlsf_shm_resize(void* tlsfmp, void* p, unsigned long size,
void* tlsf_shm_resize(void* tlsfmp, void* p, size_t size,
const char* file, const char* func, unsigned int line, const char* mname)
{
void *r;
Expand All @@ -1406,23 +1406,23 @@ void tlsf_shm_free(void* tlsfmp, void* p, const char* file, const char* func,
shm_unlock();
}
#else
void* tlsf_shm_malloc(void* tlsfmp, unsigned long size)
void* tlsf_shm_malloc(void* tlsfmp, size_t size)
{
void *r;
shm_lock();
r = tlsf_malloc(tlsfmp, size);
shm_unlock();
return r;
}
void* tlsf_shm_realloc(void* tlsfmp, void* p, unsigned long size)
void* tlsf_shm_realloc(void* tlsfmp, void* p, size_t size)
{
void *r;
shm_lock();
r = tlsf_realloc(tlsfmp, p, size);
shm_unlock();
return r;
}
void* tlsf_shm_resize(void* tlsfmp, void* p, unsigned long size)
void* tlsf_shm_resize(void* tlsfmp, void* p, size_t size)
{
void *r;
shm_lock();
Expand Down

0 comments on commit 587e24a

Please sign in to comment.