From 0f0dbc46ccf5aaaf3131446d0a4d78bc97a37295 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 22 Apr 2012 13:37:24 +0200 Subject: nspawn: add -b switch to automatically look for an init binary --- src/shared/util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/util.h') diff --git a/src/shared/util.h b/src/shared/util.h index 35ba0057d6..a26c1d9d06 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -100,6 +100,8 @@ bool streq_ptr(const char *a, const char *b); #define new0(t, n) ((t*) calloc((n), sizeof(t))) +#define newa(t, n) ((t*) alloca(sizeof(t)*(n))) + #define newdup(t, p, n) ((t*) memdup(p, sizeof(t)*(n)) #define malloc0(n) (calloc((n), 1)) -- cgit v1.2.3-54-g00ecf