X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=308d3d57a14d5ff9ad7911383af9f40f0477c4da;hp=fc159c0af3c707102d7bb853a49360d16e01c1d1;hb=4616a46c3c3866553a1c3e07546135e4f7ea50a3;hpb=050e77588502209897e9b0f456d762082a9a3041 diff --git a/src/common/macros.h b/src/common/macros.h index fc159c0af..308d3d57a 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -46,7 +46,11 @@ /* * 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])))