projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
utils: make it unnecessary to specify the last NULL argument for calloc_a
[project/libubox.git]
/
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
*/
-#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, ...);