ia64/xen-unstable

changeset 9096:c400eb3ea6dc

Fix violation of C90 mixed-code-and-declarations restriction.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Thu Mar 02 03:21:17 2006 +0100 (2006-03-02)
parents cff782f65c4d
children 34b7dd72aa55
files tools/xenstore/xenstore_control.c
line diff
     1.1 --- a/tools/xenstore/xenstore_control.c	Thu Mar 02 02:35:23 2006 +0100
     1.2 +++ b/tools/xenstore/xenstore_control.c	Thu Mar 02 03:21:17 2006 +0100
     1.3 @@ -7,6 +7,8 @@
     1.4  
     1.5  int main(int argc, char **argv)
     1.6  {
     1.7 +  struct xs_handle * xsh;
     1.8 +
     1.9    if (argc < 2 ||
    1.10        strcmp(argv[1], "check"))
    1.11    {
    1.12 @@ -18,7 +20,7 @@ int main(int argc, char **argv)
    1.13      return 2;
    1.14    }
    1.15  
    1.16 -  struct xs_handle * xsh = xs_daemon_open();
    1.17 +  xsh = xs_daemon_open();
    1.18  
    1.19    xs_debug_command(xsh, argv[1], NULL, 0);
    1.20