utils: make it unnecessary to specify the last NULL argument for calloc_a

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2012-12-31 15:40:07 +01:00
parent 9c8ab5d64c
commit 59000546c0

View file

@ -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, ...);