diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-08-30 21:49:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-10-07 20:14:38 +0200 |
commit | e5d855d364a2a474cb42da618d2e4372619ac61d (patch) | |
tree | 11e6e98425d144b7abe75f36ebb8dd0ba7936f6f /src | |
parent | 0474ef7b3ed81f0e568b88d0d84d3ab6446561d0 (diff) |
util: use SPECIAL_ROOT_SLICE macro where appropriate
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/cgroup-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 9b44c5a7a5..7675ab0299 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -1666,7 +1666,7 @@ int cg_path_get_slice(const char *p, char **slice) { if (!e) { char *s; - s = strdup("-.slice"); + s = strdup(SPECIAL_ROOT_SLICE); if (!s) return -ENOMEM; @@ -1821,7 +1821,7 @@ int cg_slice_to_path(const char *unit, char **ret) { assert(unit); assert(ret); - if (streq(unit, "-.slice")) { + if (streq(unit, SPECIAL_ROOT_SLICE)) { char *x; x = strdup(""); |