From: Lennart Poettering Date: Tue, 30 Aug 2016 19:49:26 +0000 (+0200) Subject: util: use SPECIAL_ROOT_SLICE macro where appropriate X-Git-Tag: v232~114^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5d855d364a2a474cb42da618d2e4372619ac61d;p=thirdparty%2Fsystemd.git util: use SPECIAL_ROOT_SLICE macro where appropriate --- diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 9b44c5a7a59..7675ab02992 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("");