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
ccdd7c31
Unverified
Commit
ccdd7c31
authored
Dec 09, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile_utils: cleanup set_config_bool_item()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
90558171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
confile_utils.c
src/lxc/confile_utils.c
+5
-3
No files found.
src/lxc/confile_utils.c
View file @
ccdd7c31
...
...
@@ -640,6 +640,7 @@ int set_config_path_item(char **conf_item, const char *value)
int
set_config_bool_item
(
bool
*
conf_item
,
const
char
*
value
,
bool
empty_conf_action
)
{
int
ret
;
unsigned
int
val
=
0
;
if
(
lxc_config_value_empty
(
value
))
{
...
...
@@ -647,8 +648,9 @@ int set_config_bool_item(bool *conf_item, const char *value, bool empty_conf_act
return
0
;
}
if
(
lxc_safe_uint
(
value
,
&
val
)
<
0
)
return
-
EINVAL
;
ret
=
lxc_safe_uint
(
value
,
&
val
);
if
(
ret
<
0
)
return
ret
;
switch
(
val
)
{
case
0
:
...
...
@@ -659,7 +661,7 @@ int set_config_bool_item(bool *conf_item, const char *value, bool empty_conf_act
return
0
;
}
return
-
EINVAL
;
return
ret_errno
(
EINVAL
)
;
}
int
config_ip_prefix
(
struct
in_addr
*
addr
)
...
...
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