# HG changeset patch # User Matti Hamalainen # Date 1525956556 -10800 # Node ID a90fe2c4c636c9bb0515ac01944920b5d51533de # Parent 04320ca79407055735ad7c9251cc8726ac8d134a Cleanups. diff -r 04320ca79407 -r a90fe2c4c636 th_util.c --- 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); } diff -r 04320ca79407 -r a90fe2c4c636 th_util.h --- a/th_util.h Sat Feb 17 23:42:49 2018 +0200 +++ b/th_util.h Thu May 10 15:49:16 2018 +0300 @@ -145,10 +145,10 @@ void THMSG_V(int level, const char *fmt, va_list ap); void THPRINT_V(int level, const char *fmt, va_list ap); -void *th_malloc(size_t); -void *th_malloc0(size_t); -void *th_calloc(size_t, size_t); -void *th_realloc(void *ptr, size_t); +void *th_malloc(size_t len); +void *th_malloc0(size_t len); +void *th_calloc(size_t n, size_t len); +void *th_realloc(void *ptr, size_t len); void th_free(void *ptr); void th_free_r_real(void **ptr);