[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 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |