Mercurial > hg > th-libs
diff th_util.c @ 462:a90fe2c4c636
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 May 2018 15:49:16 +0300 |
parents | 85fa3d333556 |
children | b92b18500bf9 |
line wrap: on
line diff
--- a/th_util.c Sat Feb 17 23:42:49 2018 +0200 +++ b/th_util.c Thu May 10 15:49:16 2018 +0300 @@ -200,27 +200,27 @@ /* Memory handling routines */ -void *th_malloc(size_t l) +void *th_malloc(size_t len) { - return malloc(l); + return malloc(len); } -void *th_malloc0(size_t l) +void *th_malloc0(size_t len) { - return calloc(1, l); + return calloc(1, len); } -void *th_calloc(size_t n, size_t l) +void *th_calloc(size_t n, size_t len) { - return calloc(n, l); + return calloc(n, len); } -void *th_realloc(void *ptr, size_t l) +void *th_realloc(void *ptr, size_t len) { - return realloc(ptr, l); + return realloc(ptr, len); }