Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-31 18:40:07 +0400
committerFelix Fietkau <nbd@openwrt.org>2012-12-31 18:40:12 +0400
commit59000546c02a0d486a8a6bbfaf12a8d3910f2ea2 (patch)
tree52a4ada40c195f875ae1f8417036ba416307a71a /utils.h
parent9c8ab5d64cb1bfc6f8a235af5913ed3537c38e2a (diff)
utils: make it unnecessary to specify the last NULL argument for calloc_a
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 065a28b..d1a6cd3 100644
--- a/utils.h
+++ b/utils.h
@@ -30,7 +30,7 @@
* 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, ...);