crtools: Move global image_dir to the top of the file

Better to have global vars gathered.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Pavel Emelianov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2011-12-16 18:02:02 +04:00
parent b84babe630
commit f65c75c78a

View file

@ -28,6 +28,7 @@
static struct cr_options opts;
struct page_entry zero_page_entry;
char image_dir[PATH_MAX];
/*
* The cr fd set is the set of files where the information
@ -231,7 +232,6 @@ void free_cr_fdset(struct cr_fdset **cr_fdset)
}
}
char image_dir[PATH_MAX];
int get_image_path(char *path, int size, const char *fmt, int pid)
{
int image_dir_size = strlen(image_dir);