Commit a8de4c49 by Serge Hallyn

no variable decl in for loop

parent 9ec45e7f
...@@ -1309,6 +1309,7 @@ static bool cgfsng_mount(void *hdata, const char *root, int type) ...@@ -1309,6 +1309,7 @@ static bool cgfsng_mount(void *hdata, const char *root, int type)
struct cgfsng_handler_data *d = hdata; struct cgfsng_handler_data *d = hdata;
char *tmpfspath = NULL; char *tmpfspath = NULL;
bool retval = false; bool retval = false;
int i;
if ((type & LXC_AUTO_CGROUP_MASK) == 0) if ((type & LXC_AUTO_CGROUP_MASK) == 0)
return true; return true;
...@@ -1330,7 +1331,7 @@ static bool cgfsng_mount(void *hdata, const char *root, int type) ...@@ -1330,7 +1331,7 @@ static bool cgfsng_mount(void *hdata, const char *root, int type)
root) < 0) root) < 0)
goto bad; goto bad;
for (int i = 0; d->hierarchies[i]; i++) { for (i = 0; d->hierarchies[i]; i++) {
char *controllerpath, *path2; char *controllerpath, *path2;
struct hierarchy *h = d->hierarchies[i]; struct hierarchy *h = d->hierarchies[i];
char *controller = strrchr(h->mountpoint, '/'); char *controller = strrchr(h->mountpoint, '/');
......
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