Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
a8de4c49
Commit
a8de4c49
authored
Mar 16, 2016
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no variable decl in for loop
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
9ec45e7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cgfsng.c
src/lxc/cgfsng.c
+2
-1
No files found.
src/lxc/cgfsng.c
View file @
a8de4c49
...
@@ -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
(
i
nt
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
,
'/'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment