ia64/xen-unstable

view tools/xenstore/xenstore_control.c @ 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 689da5e0a970
children 1a1e3dcbbf19
line source
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 #include "xs.h"
8 int main(int argc, char **argv)
9 {
10 struct xs_handle * xsh;
12 if (argc < 2 ||
13 strcmp(argv[1], "check"))
14 {
15 fprintf(stderr,
16 "Usage:\n"
17 "\n"
18 " %s check\n"
19 "\n", argv[0]);
20 return 2;
21 }
23 xsh = xs_daemon_open();
25 xs_debug_command(xsh, argv[1], NULL, 0);
27 xs_daemon_close(xsh);
29 return 0;
30 }