utils: make it unnecessary to specify the last NULL argument for calloc_a
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Dec 2012 14:40:07 +0000 (15:40 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Dec 2012 14:40:12 +0000 (15:40 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
utils.h

diff --git a/utils.h b/utils.h
index 065a28b..d1a6cd3 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -30,7 +30,7 @@
  * the last argument needs to be a NULL pointer
  */
 
  * the last argument needs to be a NULL pointer
  */
 
-#define calloc_a(len, ...) __calloc_a(len, ##__VA_ARGS__)
+#define calloc_a(len, ...) __calloc_a(len, ##__VA_ARGS__, NULL)
 
 void *__calloc_a(size_t len, ...);
 
 
 void *__calloc_a(size_t len, ...);