Commit f65c75c7 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

crtools: Move global image_dir to the top of the file

Better to have global vars gathered.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarPavel Emelianov <xemul@parallels.com>
parent b84babe6
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
static struct cr_options opts; static struct cr_options opts;
struct page_entry zero_page_entry; struct page_entry zero_page_entry;
char image_dir[PATH_MAX];
/* /*
* The cr fd set is the set of files where the information * 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) ...@@ -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 get_image_path(char *path, int size, const char *fmt, int pid)
{ {
int image_dir_size = strlen(image_dir); int image_dir_size = strlen(image_dir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment