mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 22:39:41 +00:00
cgroups: move variable into tighter scope
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
3312a94ff4
commit
dfa835ac21
@ -1765,7 +1765,7 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops,
|
|||||||
const char *root, int type)
|
const char *root, int type)
|
||||||
{
|
{
|
||||||
__do_free char *tmpfspath = NULL;
|
__do_free char *tmpfspath = NULL;
|
||||||
int i, ret;
|
int ret;
|
||||||
bool has_cgns = false, retval = false, wants_force_mount = false;
|
bool has_cgns = false, retval = false, wants_force_mount = false;
|
||||||
|
|
||||||
if (!ops->hierarchies)
|
if (!ops->hierarchies)
|
||||||
@ -1803,7 +1803,7 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops,
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
for (i = 0; ops->hierarchies[i]; i++) {
|
for (int i = 0; ops->hierarchies[i]; i++) {
|
||||||
__do_free char *controllerpath = NULL, *path2 = NULL;
|
__do_free char *controllerpath = NULL, *path2 = NULL;
|
||||||
struct hierarchy *h = ops->hierarchies[i];
|
struct hierarchy *h = ops->hierarchies[i];
|
||||||
char *controller = strrchr(h->mountpoint, '/');
|
char *controller = strrchr(h->mountpoint, '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user