]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tools/lxc_copy: do not hide global variable
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 20 Oct 2018 09:23:55 +0000 (11:23 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 22 Oct 2018 14:47:43 +0000 (16:47 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/tools/lxc_copy.c

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