WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xl: Move "extern" declarations to xl.h

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xl: Move "extern" declarations to xl.h
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 29 May 2010 00:30:50 -0700
Delivery-date: Sat, 29 May 2010 00:34:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=