mirror of
https://github.com/morgan9e/systemd
synced 2026-04-16 01:16:10 +09:00
util: use SPECIAL_ROOT_SLICE macro where appropriate
This commit is contained in:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user