]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Cosmetic.
authorMarek Majkowski <marek@cloudflare.com>
Tue, 12 Nov 2013 13:13:53 +0000 (05:13 -0800)
committerMarek Majkowski <marek@cloudflare.com>
Tue, 12 Nov 2013 13:13:53 +0000 (05:13 -0800)
src/lxc/lxc_start.c

index 395234297cb11467eb147278f4ea879ed920db3b..ca88940aa87291fd55d0e0716ec384c81b20f3ff 100644 (file)
@@ -298,12 +298,11 @@ int main(int argc, char *argv[])
        }
 
        if (my_args.share_net != NULL) {
-               int fd;
                int pid = pid_from_lxcname(my_args.share_net, lxcpath);
                if (pid < 1)
                        goto out;
 
-               fd = open_ns(pid, "net");
+               int fd = open_ns(pid, "net");
                if (fd < 0)
                        goto out;
                conf->inherit_ns_fd[LXC_NS_NET] = fd;