aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstore_control.c
diff options
context:
space:
mode:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-02 03:21:17 +0100
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-02 03:21:17 +0100
commit343da423ced783d9d666ae9f64e70e53258cb8f4 (patch)
tree285f812762ddb310df11ba236c26156b7cbf048b /tools/xenstore/xenstore_control.c
parent03d3577c361217d3e875cd686fb0cf1fd21808ec (diff)
downloadxen-343da423ced783d9d666ae9f64e70e53258cb8f4.tar.gz
xen-343da423ced783d9d666ae9f64e70e53258cb8f4.tar.bz2
xen-343da423ced783d9d666ae9f64e70e53258cb8f4.zip
Fix violation of C90 mixed-code-and-declarations restriction.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/xenstore/xenstore_control.c')
-rw-r--r--tools/xenstore/xenstore_control.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/xenstore/xenstore_control.c b/tools/xenstore/xenstore_control.c
index 80685c59d7..5433bfc811 100644
--- a/tools/xenstore/xenstore_control.c
+++ b/tools/xenstore/xenstore_control.c
@@ -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 @@ int main(int argc, char **argv)
return 2;
}
- struct xs_handle * xsh = xs_daemon_open();
+ xsh = xs_daemon_open();
xs_debug_command(xsh, argv[1], NULL, 0);