diff --git a/common/dynamips.c b/common/dynamips.c index 15fee6899..a6f1c4230 100644 --- a/common/dynamips.c +++ b/common/dynamips.c @@ -82,7 +82,6 @@ char *hypervisor_ip_address = NULL; /* Log file */ char *log_file_name = NULL; -FILE *log_file = NULL; /* VM flags */ volatile int vm_save_state = 0; diff --git a/common/dynamips.h b/common/dynamips.h index f33b647c6..971a02941 100644 --- a/common/dynamips.h +++ b/common/dynamips.h @@ -47,9 +47,6 @@ struct symbol { /* ROM identification tag */ #define ROM_ID 0x1e94b3df -/* Global log file */ -extern FILE *log_file; - /* Operating system name */ extern const char *os_name; diff --git a/common/utils.c b/common/utils.c index 75d9a30ae..2196fae94 100644 --- a/common/utils.c +++ b/common/utils.c @@ -32,7 +32,7 @@ #include "utils.h" -extern FILE *log_file; +FILE *log_file = NULL; /* Add an element to a list */ m_list_t *m_list_add(m_list_t **head,void *data) diff --git a/stable/utils.h b/stable/utils.h index 4e5a8b0c6..4ad8115a7 100644 --- a/stable/utils.h +++ b/stable/utils.h @@ -12,6 +12,9 @@ #include #include +/* Global log file */ +extern FILE *log_file; + /* Host CPU Types */ #define CPU_x86 0 #define CPU_amd64 1 diff --git a/unstable/utils.h b/unstable/utils.h index 930593590..128967ff8 100644 --- a/unstable/utils.h +++ b/unstable/utils.h @@ -12,6 +12,9 @@ #include #include +/* Global log file */ +extern FILE *log_file; + /* Host CPU Types */ #define CPU_x86 0 #define CPU_amd64 1