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
9cc837ef
Unverified
Commit
9cc837ef
authored
Aug 28, 2020
by
Christian Brauner
Committed by
GitHub
Aug 28, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3531 from JingWoo/cleancode
remove useless parameters
parents
46fd283b
a7c6e830
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
conf.c
src/lxc/conf.c
+3
-4
No files found.
src/lxc/conf.c
View file @
9cc837ef
...
...
@@ -2187,8 +2187,7 @@ static int mount_entry_on_relative_rootfs(struct mntent *mntent,
return
mount_entry_on_generic
(
mntent
,
path
,
rootfs
,
lxc_name
,
lxc_path
);
}
static
int
mount_file_entries
(
const
struct
lxc_conf
*
conf
,
const
struct
lxc_rootfs
*
rootfs
,
FILE
*
file
,
static
int
mount_file_entries
(
const
struct
lxc_rootfs
*
rootfs
,
FILE
*
file
,
const
char
*
lxc_name
,
const
char
*
lxc_path
)
{
char
buf
[
PATH_MAX
];
...
...
@@ -2237,7 +2236,7 @@ static int setup_mount(const struct lxc_conf *conf,
if
(
!
f
)
return
log_error_errno
(
-
1
,
errno
,
"Failed to open
\"
%s
\"
"
,
fstab
);
ret
=
mount_file_entries
(
conf
,
rootfs
,
f
,
lxc_name
,
lxc_path
);
ret
=
mount_file_entries
(
rootfs
,
f
,
lxc_name
,
lxc_path
);
if
(
ret
<
0
)
ERROR
(
"Failed to set up mount entries"
);
...
...
@@ -2324,7 +2323,7 @@ static int setup_mount_entries(const struct lxc_conf *conf,
if
(
!
f
)
return
-
1
;
return
mount_file_entries
(
conf
,
rootfs
,
f
,
lxc_name
,
lxc_path
);
return
mount_file_entries
(
rootfs
,
f
,
lxc_name
,
lxc_path
);
}
static
int
parse_cap
(
const
char
*
cap
)
...
...
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