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
dd36a95b
Unverified
Commit
dd36a95b
authored
Dec 08, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: cleanup get_config_net_ipvlan_mode()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
5e8c11f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
confile.c
src/lxc/confile.c
+3
-3
No files found.
src/lxc/confile.c
View file @
dd36a95b
...
...
@@ -5295,10 +5295,10 @@ static int get_config_net_macvlan_mode(const char *key, char *retv, int inlen,
static
int
get_config_net_ipvlan_mode
(
const
char
*
key
,
char
*
retv
,
int
inlen
,
struct
lxc_conf
*
c
,
void
*
data
)
{
int
len
;
int
fulllen
=
0
;
const
char
*
mode
;
struct
lxc_netdev
*
netdev
=
data
;
int
len
;
const
char
*
mode
;
if
(
!
retv
)
inlen
=
0
;
...
...
@@ -5306,7 +5306,7 @@ static int get_config_net_ipvlan_mode(const char *key, char *retv, int inlen,
memset
(
retv
,
0
,
inlen
);
if
(
!
netdev
)
return
ret_
set_errno
(
-
1
,
EINVAL
);
return
ret_
errno
(
EINVAL
);
if
(
netdev
->
type
!=
LXC_NET_IPVLAN
)
return
0
;
...
...
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