projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: cleanup and portability fix to configure.ac
[lttng-tools.git]
/
src
/
common
/
macros.h
diff --git
a/src/common/macros.h
b/src/common/macros.h
index fc159c0af3c707102d7bb853a49360d16e01c1d1..308d3d57a14d5ff9ad7911383af9f40f0477c4da 100644
(file)
--- a/
src/common/macros.h
+++ b/
src/common/macros.h
@@
-46,7
+46,11
@@
/*
* Memory allocation zeroed
*/
/*
* Memory allocation zeroed
*/
-#define zmalloc(x) calloc(1, x)
+static inline
+void *zmalloc(size_t len)
+{
+ return calloc(1, len);
+}
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / (sizeof((array)[0])))
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / (sizeof((array)[0])))
This page took
0.023391 seconds
and
4
git commands to generate.