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
8b013632
Unverified
Commit
8b013632
authored
Oct 06, 2018
by
Christian Brauner
Committed by
GitHub
Oct 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2672 from 2xsec/bugfix
remove unused argument
parents
13c45a4a
70e72c56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
lxc_start.c
src/lxc/tools/lxc_start.c
+3
-3
lxc_unshare.c
src/lxc/tools/lxc_unshare.c
+0
-1
No files found.
src/lxc/tools/lxc_start.c
View file @
8b013632
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
lxc_log_define
(
lxc_start
,
lxc
);
lxc_log_define
(
lxc_start
,
lxc
);
static
int
my_parser
(
struct
lxc_arguments
*
args
,
int
c
,
char
*
arg
);
static
int
my_parser
(
struct
lxc_arguments
*
args
,
int
c
,
char
*
arg
);
static
int
ensure_path
(
struct
lxc_arguments
*
args
,
char
**
confpath
,
const
char
*
path
);
static
int
ensure_path
(
char
**
confpath
,
const
char
*
path
);
static
struct
lxc_list
defines
;
static
struct
lxc_list
defines
;
...
@@ -144,7 +144,7 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg)
...
@@ -144,7 +144,7 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg)
return
0
;
return
0
;
}
}
static
int
ensure_path
(
struct
lxc_arguments
*
args
,
char
**
confpath
,
const
char
*
path
)
static
int
ensure_path
(
char
**
confpath
,
const
char
*
path
)
{
{
int
fd
;
int
fd
;
char
*
fullpath
=
NULL
;
char
*
fullpath
=
NULL
;
...
@@ -300,7 +300,7 @@ int main(int argc, char *argv[])
...
@@ -300,7 +300,7 @@ int main(int argc, char *argv[])
}
}
if
(
my_args
.
pidfile
)
if
(
my_args
.
pidfile
)
if
(
ensure_path
(
&
my_args
,
&
c
->
pidfile
,
my_args
.
pidfile
)
<
0
)
{
if
(
ensure_path
(
&
c
->
pidfile
,
my_args
.
pidfile
)
<
0
)
{
ERROR
(
"Failed to ensure pidfile '%s'"
,
my_args
.
pidfile
);
ERROR
(
"Failed to ensure pidfile '%s'"
,
my_args
.
pidfile
);
goto
out
;
goto
out
;
}
}
...
...
src/lxc/tools/lxc_unshare.c
View file @
8b013632
...
@@ -108,7 +108,6 @@ Options :\n\
...
@@ -108,7 +108,6 @@ Options :\n\
.
log_priority
=
"ERROR"
,
.
log_priority
=
"ERROR"
,
.
log_file
=
"none"
,
.
log_file
=
"none"
,
.
daemonize
=
0
,
.
daemonize
=
0
,
.
pidfile
=
NULL
,
};
};
static
int
my_parser
(
struct
lxc_arguments
*
args
,
int
c
,
char
*
arg
)
static
int
my_parser
(
struct
lxc_arguments
*
args
,
int
c
,
char
*
arg
)
...
...
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