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
60a742e0
Commit
60a742e0
authored
Jul 31, 2012
by
Serge Hallyn
Committed by
Daniel Lezcano
Jul 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused lastcap variable
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
2b657f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
caps.c
src/lxc/caps.c
+0
-2
No files found.
src/lxc/caps.c
View file @
60a742e0
...
@@ -91,7 +91,6 @@ int lxc_caps_up(void)
...
@@ -91,7 +91,6 @@ int lxc_caps_up(void)
cap_t
caps
;
cap_t
caps
;
cap_value_t
cap
;
cap_value_t
cap
;
int
ret
;
int
ret
;
int
lastcap
=
0
;
/* when we are run as root, we don't want to play
/* when we are run as root, we don't want to play
* with the capabilities */
* with the capabilities */
...
@@ -118,7 +117,6 @@ int lxc_caps_up(void)
...
@@ -118,7 +117,6 @@ int lxc_caps_up(void)
goto
out
;
goto
out
;
}
}
}
}
lastcap
=
cap
;
ret
=
cap_set_flag
(
caps
,
CAP_EFFECTIVE
,
1
,
&
cap
,
flag
);
ret
=
cap_set_flag
(
caps
,
CAP_EFFECTIVE
,
1
,
&
cap
,
flag
);
if
(
ret
)
{
if
(
ret
)
{
...
...
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