diff options
author | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2006-03-02 03:21:17 +0100 |
---|---|---|
committer | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2006-03-02 03:21:17 +0100 |
commit | 343da423ced783d9d666ae9f64e70e53258cb8f4 (patch) | |
tree | 285f812762ddb310df11ba236c26156b7cbf048b /tools/xenstore/xenstore_control.c | |
parent | 03d3577c361217d3e875cd686fb0cf1fd21808ec (diff) | |
download | xen-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.c | 4 |
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); |