#define __do_endmntent __attribute__((__cleanup__(__auto_endmntent__)))
-static int setup_mount_fstab(const struct lxc_conf *conf,
- struct lxc_rootfs *rootfs, const char *fstab,
+static int setup_mount_fstab(struct lxc_rootfs *rootfs, const char *fstab,
const char *lxc_name, const char *lxc_path)
{
__do_endmntent FILE *f = NULL;
}
static int setup_mount_entries(const struct lxc_conf *conf,
- struct lxc_rootfs *rootfs,
- struct lxc_list *mount, const char *lxc_name,
- const char *lxc_path)
+ struct lxc_rootfs *rootfs, struct lxc_list *mount,
+ const char *lxc_name, const char *lxc_path)
{
__do_fclose FILE *f = NULL;
if (ret < 0)
return log_error(-1, "Failed to setup first automatic mounts");
- ret = setup_mount_fstab(lxc_conf, &lxc_conf->rootfs, lxc_conf->fstab, name, lxcpath);
+ ret = setup_mount_fstab(&lxc_conf->rootfs, lxc_conf->fstab, name, lxcpath);
if (ret < 0)
return log_error(-1, "Failed to setup mounts");