chiark / gitweb /
unit: rename BindTo= to BindsTo=
[elogind.git] / src / core / swap.c
index e7ed1b88d728c710a813c87aeef5103d80e4e20c..aeb8bdab36ef4723ec5cdc9a7da82b9c4644e873 100644 (file)
@@ -590,6 +590,7 @@ static int swap_spawn(Swap *s, ExecCommand *c, pid_t *_pid) {
                             UNIT(s)->cgroup_bondings,
                             UNIT(s)->cgroup_attributes,
                             NULL,
+                            UNIT(s)->id,
                             NULL,
                             &pid)) < 0)
                 goto fail;
@@ -1334,7 +1335,6 @@ static const char* const swap_result_table[_SWAP_RESULT_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(swap_result, SwapResult);
 
 const UnitVTable swap_vtable = {
-        .suffix = ".swap",
         .object_size = sizeof(Swap),
         .sections =
                 "Unit\0"