From: Felix Fietkau Date: Mon, 31 Dec 2012 14:40:07 +0000 (+0100) Subject: utils: make it unnecessary to specify the last NULL argument for calloc_a X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=59000546c02a0d486a8a6bbfaf12a8d3910f2ea2 utils: make it unnecessary to specify the last NULL argument for calloc_a Signed-off-by: Felix Fietkau --- 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, ...);