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 -3.0-testing <patchbot-3.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Mar 2006 19:48:18 +0000
Delivery-date: Fri, 10 Mar 2006 19:49:33 +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 a12cd99660ad036f4a23d9d61f69fcf6730d549b
# Parent  4e726ab2dcc6721de5bcf759a74720de01729d2c
Fix violation of C90 mixed-code-and-declarations restriction.

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

diff -r 4e726ab2dcc6 -r a12cd99660ad tools/xenstore/xenstore_control.c
--- a/tools/xenstore/xenstore_control.c Wed Mar  8 22:57:08 2006
+++ b/tools/xenstore/xenstore_control.c Wed Mar  8 22:57:15 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>