projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c8ab5d
)
utils: make it unnecessary to specify the last NULL argument for calloc_a
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 31 Dec 2012 14:40:07 +0000
(15:40 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 31 Dec 2012 14:40:12 +0000
(15:40 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
utils.h
patch
|
blob
|
history
diff --git
a/utils.h
b/utils.h
index 065a28b343f9e29e7cb4fe53d49313ff539fb972..d1a6cd33699eecb1eff61c798013fb7d198463f2 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, ...);