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
e854c5e3
Commit
e854c5e3
authored
Aug 26, 2016
by
Serge Hallyn
Committed by
GitHub
Aug 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1151 from brauner/2016-08-26/fix_lxc_device
tools: use boolean for ret in lxc_device.c
parents
fe8ded6d
30a5e436
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 @
e854c5e3
...
...
@@ -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