diff th_util.h @ 194:87dac812cac4

Define some argument identifiers in function prototypes and rename some arguments.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 11 Feb 2016 16:42:00 +0200
parents 7d25d43a3ce2
children 88986d0b56ef
line wrap: on
line diff
--- a/th_util.h	Thu Feb 11 16:22:52 2016 +0200
+++ b/th_util.h	Thu Feb 11 16:42:00 2016 +0200
@@ -136,20 +136,20 @@
 int     th_errno_to_error(int error);
 const char *th_error_str(int error);
 
-void    THERR(const char *, ...);
-void    THMSG(int, const char *, ...);
-void    THPRINT(int, const char *, ...);
+void    THERR(const char *fmt, ...);
+void    THMSG(int level, const char *fmt, ...);
+void    THPRINT(int level, const char *fmt, ...);
 
-void    THERR_V(const char *, va_list);
-void    THMSG_V(int, const char *, va_list);
-void    THPRINT_V(int, const char *, va_list);
+void    THERR_V(const char *fmt, va_list ap);
+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 *, size_t);
-void    th_free(void *);
-void    th_free_r(void **);
+void    *th_realloc(void *ptr, size_t);
+void    th_free(void *ptr);
+void    th_free_r(void **ptr);
 
 
 /* Doubly linked list handling