projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0474ef7
)
util: use SPECIAL_ROOT_SLICE macro where appropriate
author
Lennart Poettering
<lennart@poettering.net>
Tue, 30 Aug 2016 19:49:26 +0000
(21:49 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 7 Oct 2016 18:14:38 +0000
(20:14 +0200)
src/basic/cgroup-util.c
patch
|
blob
|
history
diff --git
a/src/basic/cgroup-util.c
b/src/basic/cgroup-util.c
index 9b44c5a7a59492b46122f55ca8d7ea8174e255e4..7675ab0299231b973dbaa493bea17507c6c5976b 100644
(file)
--- 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("");