chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tmpfiles: take names of tmpfiles configuration files on the command line
[elogind.git]
/
src
/
cgroup.c
diff --git
a/src/cgroup.c
b/src/cgroup.c
index 64082d0dc6b64140636d1f10ee209e4fa9deecf3..392736f987f82d1b23f3ce9705005e3dc618e99e 100644
(file)
--- a/
src/cgroup.c
+++ b/
src/cgroup.c
@@
-404,17
+404,16
@@
char *cgroup_bonding_to_string(CGroupBonding *b) {
pid_t cgroup_bonding_search_main_pid(CGroupBonding *b) {
FILE *f;
pid_t pid = 0, npid;
pid_t cgroup_bonding_search_main_pid(CGroupBonding *b) {
FILE *f;
pid_t pid = 0, npid;
- int r;
assert(b);
if (!b->ours)
return 0;
assert(b);
if (!b->ours)
return 0;
- if (
(r = cg_enumerate_processes(b->controller, b->path, &f)
) < 0)
+ if (
cg_enumerate_processes(b->controller, b->path, &f
) < 0)
return 0;
return 0;
- while (
(r = cg_read_pid(f, &npid)
) > 0) {
+ while (
cg_read_pid(f, &npid
) > 0) {
if (npid == pid)
continue;
if (npid == pid)
continue;