]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xl: lift logfile declaration to xl.h
authorWei Liu <wei.liu2@citrix.com>
Wed, 1 Mar 2017 10:24:55 +0000 (10:24 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 2 Mar 2017 13:41:10 +0000 (13:41 +0000)
No functional change.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xl/xl.h
tools/xl/xl_utils.c
tools/xl/xl_vmcontrol.c

index 3869776395f7f56bcd6da00ccfff6d92260408e0..1ad07261f2002bbfdb9618fb518da20dde0eee36 100644 (file)
@@ -218,6 +218,7 @@ struct cmd_spec *cmdtable_lookup(const char *s);
 
 extern libxl_ctx *ctx;
 extern xentoollog_logger_stdiostream *logger;
+extern int logfile;
 
 void xl_ctx_alloc(void);
 
index f79f08029f24db33501037efc8de3bf4a16c1f01..4503ac7ea03c51ceb6064283b6b4ba55f3b76e0b 100644 (file)
@@ -27,8 +27,6 @@
 #include "xl.h"
 #include "xl_utils.h"
 
-extern int logfile;
-
 void dolog(const char *file, int line, const char *func, char *fmt, ...)
 {
     va_list ap;
index 81a9af7705a1d8040603c5a44e19964a113a42b7..0ad6e0bcbbeb6179dafca486edf8c52491c2c454 100644 (file)
@@ -30,8 +30,6 @@
 #include "xl_utils.h"
 #include "xl_parse.h"
 
-extern int logfile;
-
 static int fd_lock = -1;
 
 static void pause_domain(uint32_t domid)