[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix violation of C90 mixed-code-and-declarations restriction.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |