mirror of
git://github.com/lxc/lxc
synced 2025-09-01 03:06:51 +00:00
tools: fix variable declarations in lxc-attach
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -277,10 +277,11 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
int wexit = 0;
|
int wexit = 0;
|
||||||
struct lxc_log log;
|
|
||||||
pid_t pid;
|
|
||||||
lxc_attach_options_t attach_options = LXC_ATTACH_OPTIONS_DEFAULT;
|
lxc_attach_options_t attach_options = LXC_ATTACH_OPTIONS_DEFAULT;
|
||||||
lxc_attach_command_t command = (lxc_attach_command_t){.program = NULL};
|
lxc_attach_command_t command = (lxc_attach_command_t){.program = NULL};
|
||||||
|
pid_t pid;
|
||||||
|
struct lxc_container *c;
|
||||||
|
struct lxc_log log;
|
||||||
|
|
||||||
if (lxc_caps_init())
|
if (lxc_caps_init())
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
@@ -304,7 +305,7 @@ int main(int argc, char *argv[])
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct lxc_container *c = lxc_container_new(my_args.name, my_args.lxcpath[0]);
|
c = lxc_container_new(my_args.name, my_args.lxcpath[0]);
|
||||||
if (!c)
|
if (!c)
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user