tools/lxc_copy: do not hide global variable

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-10-20 11:23:55 +02:00
parent 632ac690a9
commit f3c348587d
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -87,7 +87,7 @@ static const struct option my_longopts[] = {
}; };
/* mount keys */ /* mount keys */
static char *const keys[] = { static char *const mount_keys[] = {
[LXC_MNT_BIND] = "bind", [LXC_MNT_BIND] = "bind",
[LXC_MNT_OVL] = "overlay", [LXC_MNT_OVL] = "overlay",
NULL NULL
@ -568,7 +568,7 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg)
break; break;
case 'm': case 'm':
subopts = optarg; subopts = optarg;
if (parse_mntsubopts(subopts, keys, mntparameters) < 0) if (parse_mntsubopts(subopts, mount_keys, mntparameters) < 0)
return -1; return -1;
break; break;
case 'B': case 'B':