From f65c75c78a136aa8534dbc8a3612b1a5391e0bb0 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 16 Dec 2011 18:02:02 +0400 Subject: [PATCH] crtools: Move global image_dir to the top of the file Better to have global vars gathered. Signed-off-by: Cyrill Gorcunov Acked-by: Pavel Emelianov --- crtools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crtools.c b/crtools.c index 815fd4abd..98d2ac902 100644 --- a/crtools.c +++ b/crtools.c @@ -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);