]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: let's make use of SPECIAL_MACHINE_SLICE macro, after all we already set it
authorLennart Poettering <lennart@poettering.net>
Wed, 2 May 2018 12:24:39 +0000 (14:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 May 2018 15:45:42 +0000 (17:45 +0200)
src/nspawn/nspawn-register.c

index 643e00400f80d661726c26fb5ab78f3ea1d08731..c0cdb7c0d748b4207a9d7538f05754118fd41a54 100644 (file)
@@ -11,6 +11,7 @@
 #include "bus-unit-util.h"
 #include "bus-util.h"
 #include "nspawn-register.h"
+#include "special.h"
 #include "stat-util.h"
 #include "strv.h"
 #include "util.h"
@@ -309,7 +310,7 @@ int allocate_scope(
                                   "PIDs", "au", 1, pid,
                                   "Description", "s", description,
                                   "Delegate", "b", 1,
-                                  "Slice", "s", isempty(slice) ? "machine.slice" : slice);
+                                  "Slice", "s", isempty(slice) ? SPECIAL_MACHINE_SLICE : slice);
         if (r < 0)
                 return bus_log_create_error(r);