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:
parent
9c8ab5d64c
commit
59000546c0
1 changed files with 1 additions and 1 deletions
2
utils.h
2
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, ...);
|
||||
|
||||
|
|
Loading…
Reference in a new issue