summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-19 12:03:12 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-19 12:03:12 +0100
commitd15d65a01fe02fc66c3a9664fa9eab983f0f5024 (patch)
treea08a6627875adb363cf2e3b5fd6cea54d75c2ed1 /src
parent6dac160c0a5ba7a0f39db183e877ed8e85057234 (diff)
nspawn: fix build on non-selinux systems
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 8a151f15ea..9967423dbc 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -872,10 +872,7 @@ static int mount_all(const char *dest) {
int r = 0;
for (k = 0; k < ELEMENTSOF(mount_table); k++) {
- _cleanup_free_ char *where = NULL;
-#ifdef HAVE_SELINUX
- _cleanup_free_ char *options = NULL;
-#endif
+ _cleanup_free_ char *where = NULL, *options = NULL;
const char *o;
int t;