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
f3783d06
Unverified
Commit
f3783d06
authored
Jul 03, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: use empty {} to initialize struct
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
4bc51378
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cgfsng.c
src/lxc/cgroups/cgfsng.c
+3
-3
No files found.
src/lxc/cgroups/cgfsng.c
View file @
f3783d06
...
@@ -2657,7 +2657,7 @@ __cgfsng_ops static int cgfsng_set(struct cgroup_ops *ops,
...
@@ -2657,7 +2657,7 @@ __cgfsng_ops static int cgfsng_set(struct cgroup_ops *ops,
*
p
=
'\0'
;
*
p
=
'\0'
;
if
(
pure_unified_layout
(
ops
)
&&
strcmp
(
controller
,
"devices"
)
==
0
)
{
if
(
pure_unified_layout
(
ops
)
&&
strcmp
(
controller
,
"devices"
)
==
0
)
{
struct
device_item
device
=
{
0
};
struct
device_item
device
=
{};
ret
=
device_cgroup_rule_parse
(
&
device
,
key
,
value
);
ret
=
device_cgroup_rule_parse
(
&
device
,
key
,
value
);
if
(
ret
<
0
)
if
(
ret
<
0
)
...
@@ -2764,7 +2764,7 @@ static int device_cgroup_rule_parse_devpath(struct device_item *device,
...
@@ -2764,7 +2764,7 @@ static int device_cgroup_rule_parse_devpath(struct device_item *device,
static
int
convert_devpath
(
const
char
*
invalue
,
char
*
dest
)
static
int
convert_devpath
(
const
char
*
invalue
,
char
*
dest
)
{
{
struct
device_item
device
=
{
0
};
struct
device_item
device
=
{};
int
ret
;
int
ret
;
ret
=
device_cgroup_rule_parse_devpath
(
&
device
,
invalue
);
ret
=
device_cgroup_rule_parse_devpath
(
&
device
,
invalue
);
...
@@ -2884,7 +2884,7 @@ static int bpf_device_cgroup_prepare(struct cgroup_ops *ops,
...
@@ -2884,7 +2884,7 @@ static int bpf_device_cgroup_prepare(struct cgroup_ops *ops,
const
char
*
val
)
const
char
*
val
)
{
{
#ifdef HAVE_STRUCT_BPF_CGROUP_DEV_CTX
#ifdef HAVE_STRUCT_BPF_CGROUP_DEV_CTX
struct
device_item
device_item
=
{
0
};
struct
device_item
device_item
=
{};
int
ret
;
int
ret
;
if
(
strcmp
(
"devices.allow"
,
key
)
==
0
&&
*
val
==
'/'
)
if
(
strcmp
(
"devices.allow"
,
key
)
==
0
&&
*
val
==
'/'
)
...
...
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