From 3de771d453e7c063f5448c0f0dbb592acb5ee0b8 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sat, 12 May 2007 19:31:52 +0000 Subject: [PATCH] move config variable from static to stack of main() --- tools/emile.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/emile.c b/tools/emile.c index ad180a9..f52070c 100644 --- a/tools/emile.c +++ b/tools/emile.c @@ -22,16 +22,6 @@ int verbose = 0; extern void scanbus(void); -static char *backup_path = PREFIX "/boot/emile/bootblock.backup"; -static char *config_path = PREFIX "/boot/emile/emile.conf"; -static char *partition; -static char *first_path; -static char *second_path; -static char *kernel_path; -static char *initrd_path; -static char *kernel_map_path; -static char *initrd_map_path; -static char *append_string; enum { ACTION_NONE = 0x00000000, @@ -334,6 +324,16 @@ static int set_HFS(char *dev_name) int main(int argc, char **argv) { + char *backup_path = PREFIX "/boot/emile/bootblock.backup"; + char *config_path = PREFIX "/boot/emile/emile.conf"; + char *partition; + char *first_path; + char *second_path; + char *kernel_path; + char *initrd_path; + char *kernel_map_path; + char *initrd_map_path; + char *append_string; int ret; int c; int option_index = 0;