Commit 92fcb869 authored by Pavel Emelyanov's avatar Pavel Emelyanov

Fix compilation after previous commit

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 19dbe259
...@@ -992,7 +992,7 @@ static int prepare_cgroup_dir_properties(char *path, int off, CgroupDirEntry **e ...@@ -992,7 +992,7 @@ static int prepare_cgroup_dir_properties(char *path, int off, CgroupDirEntry **e
CgroupDirEntry *e = ents[i]; CgroupDirEntry *e = ents[i];
size_t off2 = off; size_t off2 = off;
if (strcmp(e->dir_name, "") == 0 && if (strcmp(e->dir_name, "") == 0)
goto skip; /* skip root cgroups */ goto skip; /* skip root cgroups */
off2 += sprintf(path + off, "/%s", e->dir_name); off2 += sprintf(path + off, "/%s", e->dir_name);
...@@ -1002,7 +1002,6 @@ static int prepare_cgroup_dir_properties(char *path, int off, CgroupDirEntry **e ...@@ -1002,7 +1002,6 @@ static int prepare_cgroup_dir_properties(char *path, int off, CgroupDirEntry **e
return -1; return -1;
} }
} }
skip: skip:
if (prepare_cgroup_dir_properties(path, off2, e->children, e->n_children) < 0) if (prepare_cgroup_dir_properties(path, off2, e->children, e->n_children) < 0)
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment