util: use SPECIAL_ROOT_SLICE macro where appropriate

This commit is contained in:
Lennart Poettering 2016-08-30 21:49:26 +02:00
parent 0474ef7b3e
commit e5d855d364
1 changed files with 2 additions and 2 deletions

View File

@ -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("");