|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xl: Move "extern" declarations to xl.h
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1275035134 -3600
# Node ID 01083ac776affba781dbfeeee12fffa0443710ea
# Parent 02cc3684b8e09c5a4f337535d17598bb9014ec99
xl: Move "extern" declarations to xl.h
Declarations (as opposed to definitions) of external objects should
not appear in .c files.
Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
tools/libxl/xl.c | 3 ---
tools/libxl/xl.h | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
diff -r 02cc3684b8e0 -r 01083ac776af tools/libxl/xl.c
--- a/tools/libxl/xl.c Fri May 28 09:25:07 2010 +0100
+++ b/tools/libxl/xl.c Fri May 28 09:25:34 2010 +0100
@@ -30,9 +30,6 @@
#include "libxl.h"
#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,
diff -r 02cc3684b8e0 -r 01083ac776af tools/libxl/xl.h
--- a/tools/libxl/xl.h Fri May 28 09:25:07 2010 +0100
+++ b/tools/libxl/xl.h Fri May 28 09:25:34 2010 +0100
@@ -74,4 +74,7 @@ extern struct cmd_spec cmd_table[];
extern struct cmd_spec cmd_table[];
extern int cmdtable_len;
+extern struct libxl_ctx ctx;
+extern int logfile;
+
#endif /* XL_H */
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xl: Move "extern" declarations to xl.h,
Xen patchbot-unstable <=
|
|
|
|
|