changeset 462:a90fe2c4c636

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 10 May 2018 15:49:16 +0300
parents 04320ca79407
children b5cd85983039
files th_util.c th_util.h
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
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);
 }
 
 
--- 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);