mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 20:42:49 +00:00
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:
parent
b84babe630
commit
f65c75c78a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue