conf.c: small fix for args of mount_entry

Signed-off-by: Yifeng Tan <tanyifeng1@huawei.com>
This commit is contained in:
Yifeng Tan 2017-12-19 17:35:01 +08:00
parent 9668d2cd15
commit d6bec4ab7b
2 changed files with 4 additions and 4 deletions

View File

@ -1813,8 +1813,8 @@ static char *get_field(char *src, int nfields)
static int mount_entry(const char *fsname, const char *target, static int mount_entry(const char *fsname, const char *target,
const char *fstype, unsigned long mountflags, const char *fstype, unsigned long mountflags,
const char *data, int optional, int dev, const char *data, bool optional, bool dev,
int relative, const char *rootfs) bool relative, const char *rootfs)
{ {
int ret; int ret;
char srcbuf[MAXPATHLEN]; char srcbuf[MAXPATHLEN];

View File

@ -478,7 +478,7 @@ int main(int argc, char *argv[])
} }
if (!c->get_config_item(c, "lxc.id_map", retval, sizeof(retval))) { if (!c->get_config_item(c, "lxc.id_map", retval, sizeof(retval))) {
lxc_error("%s\n", "failed to get config item \"lxc.cgroup\""); lxc_error("%s\n", "failed to get config item \"lxc.id_map\"");
return -1; return -1;
} }
@ -506,7 +506,7 @@ int main(int argc, char *argv[])
} }
if (!c->get_config_item(c, "lxc.idmap", retval, sizeof(retval))) { if (!c->get_config_item(c, "lxc.idmap", retval, sizeof(retval))) {
lxc_error("%s\n", "failed to get config item \"lxc.cgroup\""); lxc_error("%s\n", "failed to get config item \"lxc.idmap\"");
return -1; return -1;
} }