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
30a5e436
Unverified
Commit
30a5e436
authored
Aug 26, 2016
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: use boolean for ret in lxc_device.c
Signed-off-by:
Christian Brauner
<
cbrauner@suse.de
>
parent
fe8ded6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lxc_device.c
src/lxc/tools/lxc_device.c
+1
-3
No files found.
src/lxc/tools/lxc_device.c
View file @
30a5e436
...
...
@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
{
struct
lxc_container
*
c
;
char
*
cmd
,
*
dev_name
,
*
dst_name
;
int
ret
=
1
;
bool
ret
=
false
;
if
(
geteuid
()
!=
0
)
{
ERROR
(
"%s must be run as root"
,
argv
[
0
]);
...
...
@@ -164,7 +164,6 @@ int main(int argc, char *argv[])
}
if
(
ret
!=
true
)
{
ERROR
(
"Failed to add %s to %s."
,
dev_name
,
c
->
name
);
ret
=
1
;
goto
err1
;
}
INFO
(
"Add %s to %s."
,
dev_name
,
c
->
name
);
...
...
@@ -176,7 +175,6 @@ int main(int argc, char *argv[])
}
if
(
ret
!=
true
)
{
ERROR
(
"Failed to del %s from %s."
,
dev_name
,
c
->
name
);
ret
=
1
;
goto
err1
;
}
INFO
(
"Delete %s from %s."
,
dev_name
,
c
->
name
);
...
...
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