diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-10 17:38:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-10 17:38:50 +0200 |
commit | 55096547212928b0ba83fca2595cae0d66d3c0b0 (patch) | |
tree | 0168ac4f04b780e88f869f1807e797be2120c573 /src/unit.c | |
parent | fb385181517aa97fc5b379380cde0c2567f5f444 (diff) |
cgroup: make cgroup controller name a constant
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unit.c b/src/unit.c index 18faae22e4..5d51f99966 100644 --- a/src/unit.c +++ b/src/unit.c @@ -1598,7 +1598,7 @@ int unit_add_cgroup_from_text(Unit *u, const char *name) { if (n > 0) controller = strndup(name, n); else - controller = strdup(u->meta.manager->cgroup_controller); + controller = strdup(SYSTEMD_CGROUP_CONTROLLER); if (!controller) { r = -ENOMEM; @@ -1647,7 +1647,7 @@ int unit_add_default_cgroup(Unit *u) { if (!(b = new0(CGroupBonding, 1))) return -ENOMEM; - if (!(b->controller = strdup(u->meta.manager->cgroup_controller))) + if (!(b->controller = strdup(SYSTEMD_CGROUP_CONTROLLER))) goto fail; if (!(b->path = default_cgroup_path(u))) @@ -1672,7 +1672,7 @@ fail: CGroupBonding* unit_get_default_cgroup(Unit *u) { assert(u); - return cgroup_bonding_find_list(u->meta.cgroup_bondings, u->meta.manager->cgroup_controller); + return cgroup_bonding_find_list(u->meta.cgroup_bondings, SYSTEMD_CGROUP_CONTROLLER); } int unit_load_related_unit(Unit *u, const char *type, Unit **_found) { |