comparison 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
comparison
equal deleted inserted replaced
461:04320ca79407 462:a90fe2c4c636
198 } 198 }
199 199
200 200
201 /* Memory handling routines 201 /* Memory handling routines
202 */ 202 */
203 void *th_malloc(size_t l) 203 void *th_malloc(size_t len)
204 { 204 {
205 return malloc(l); 205 return malloc(len);
206 } 206 }
207 207
208 208
209 void *th_malloc0(size_t l) 209 void *th_malloc0(size_t len)
210 { 210 {
211 return calloc(1, l); 211 return calloc(1, len);
212 } 212 }
213 213
214 214
215 void *th_calloc(size_t n, size_t l) 215 void *th_calloc(size_t n, size_t len)
216 { 216 {
217 return calloc(n, l); 217 return calloc(n, len);
218 } 218 }
219 219
220 220
221 void *th_realloc(void *ptr, size_t l) 221 void *th_realloc(void *ptr, size_t len)
222 { 222 {
223 return realloc(ptr, l); 223 return realloc(ptr, len);
224 } 224 }
225 225
226 226
227 void th_free(void *ptr) 227 void th_free(void *ptr)
228 { 228 {