chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ca31d
)
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
Sven Eden
<yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:53 +0000
(08:50 +0200)
src/basic/cgroup-util.c
patch
|
blob
|
history
diff --git
a/src/basic/cgroup-util.c
b/src/basic/cgroup-util.c
index e3b67e3d8c05b507fc3b01ecc36618eb30f8efec..65884568e51cdb767c79f85d711cb4cfad4781a4 100644
(file)
--- a/
src/basic/cgroup-util.c
+++ b/
src/basic/cgroup-util.c
@@
-1712,7
+1712,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;
@@
-1869,7
+1869,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("");