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] Fix violation of C90 mixed-code-and-declarations restric

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix violation of C90 mixed-code-and-declarations restriction.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Mar 2006 12:16:09 +0000
Delivery-date: Thu, 02 Mar 2006 12:17:11 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID c400eb3ea6dcf9b1d4ec758a6ce1fe51676f620f
# Parent  cff782f65c4df5b5bd28744495e03e57129b6459
Fix violation of C90 mixed-code-and-declarations restriction.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r cff782f65c4d -r c400eb3ea6dc tools/xenstore/xenstore_control.c
--- a/tools/xenstore/xenstore_control.c Thu Mar  2 01:35:23 2006
+++ b/tools/xenstore/xenstore_control.c Thu Mar  2 02:21:17 2006
@@ -7,6 +7,8 @@
 
 int main(int argc, char **argv)
 {
+  struct xs_handle * xsh;
+
   if (argc < 2 ||
       strcmp(argv[1], "check"))
   {
@@ -18,7 +20,7 @@
     return 2;
   }
 
-  struct xs_handle * xsh = xs_daemon_open();
+  xsh = xs_daemon_open();
 
   xs_debug_command(xsh, argv[1], NULL, 0);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>