xl: Move "extern" declarations to xl.h
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 28 May 2010 08:25:34 +0000 (09:25 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 28 May 2010 08:25:34 +0000 (09:25 +0100)
Declarations (as opposed to definitions) of external objects should
not appear in .c files.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/xl.c
tools/libxl/xl.h

index 82ab873a43c72805f9c9358ceeb97ef5d54e6443..77eaa7b087fc7b4cf5ecd0b83b620ee7402ba692 100644 (file)
@@ -31,9 +31,6 @@
 #include "libxl_utils.h"
 #include "xl.h"
 
-extern struct libxl_ctx ctx;
-extern int logfile;
-
 void log_callback(
     void *userdata, int loglevel, const char *file,
     int line, const char *func, char *s)
index faf784ae8b554615a4ab859f3633c6c3f7e8b27d..450a12ff2b3073d04b44af0a5431d5fa0b520067 100644 (file)
@@ -74,4 +74,7 @@ void help(char *command);
 extern struct cmd_spec cmd_table[];
 extern int cmdtable_len;
 
+extern struct libxl_ctx ctx;
+extern int logfile;
+
 #endif /* XL_H */