Unverified Commit 8c23afc3 by wujing Committed by Christian Brauner

remove useless parameters

Signed-off-by: 's avatarwujing <Jing.Woo@outlook.com>
parent f3d2aa89
...@@ -2187,8 +2187,7 @@ static int mount_entry_on_relative_rootfs(struct mntent *mntent, ...@@ -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); return mount_entry_on_generic(mntent, path, rootfs, lxc_name, lxc_path);
} }
static int mount_file_entries(const struct lxc_conf *conf, static int mount_file_entries(const struct lxc_rootfs *rootfs, FILE *file,
const struct lxc_rootfs *rootfs, FILE *file,
const char *lxc_name, const char *lxc_path) const char *lxc_name, const char *lxc_path)
{ {
char buf[PATH_MAX]; char buf[PATH_MAX];
...@@ -2237,7 +2236,7 @@ static int setup_mount(const struct lxc_conf *conf, ...@@ -2237,7 +2236,7 @@ static int setup_mount(const struct lxc_conf *conf,
if (!f) if (!f)
return log_error_errno(-1, errno, "Failed to open \"%s\"", fstab); 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) if (ret < 0)
ERROR("Failed to set up mount entries"); ERROR("Failed to set up mount entries");
...@@ -2324,7 +2323,7 @@ static int setup_mount_entries(const struct lxc_conf *conf, ...@@ -2324,7 +2323,7 @@ static int setup_mount_entries(const struct lxc_conf *conf,
if (!f) if (!f)
return -1; 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) static int parse_cap(const char *cap)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment