summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-22 13:37:24 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-22 14:11:32 +0200
commit0f0dbc46ccf5aaaf3131446d0a4d78bc97a37295 (patch)
treecbd6793a750014692ebb7cb2343b2cd255dd7c7c /src/shared/util.h
parentacda6a054fb131dbab9b7b16e4148e05a03ce66b (diff)
nspawn: add -b switch to automatically look for an init binary
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h2
1 files changed, 2 insertions, 0 deletions
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))