diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-11-22 18:44:08 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-11-22 18:44:08 +0100 |
commit | 869e86d8e6a9f2d3665f6467d25bacad624b8d1e (patch) | |
tree | 909327fd4c29d504badc1f9728e39e2c030ba84f /tools/xenstore/xenstore_client.c | |
parent | 49e566a9aaec934a8a7a530826ded0c033044799 (diff) | |
download | xen-869e86d8e6a9f2d3665f6467d25bacad624b8d1e.tar.gz xen-869e86d8e6a9f2d3665f6467d25bacad624b8d1e.tar.bz2 xen-869e86d8e6a9f2d3665f6467d25bacad624b8d1e.zip |
Add -Wdeclaration-after-statement to Xen and tools build.
Fix the compile errors that result from this.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstore/xenstore_client.c')
-rw-r--r-- | tools/xenstore/xenstore_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c index 2d36520653..f8e1f5c893 100644 --- a/tools/xenstore/xenstore_client.c +++ b/tools/xenstore/xenstore_client.c @@ -109,7 +109,7 @@ perform(int optind, int argc, char **argv, struct xs_handle *xsh, necessary. */ - char *path = argv[optind]; + char *slash, *path = argv[optind]; if (tidy) { /* Copy path, because we can't modify argv because we will need it @@ -123,7 +123,7 @@ perform(int optind, int argc, char **argv, struct xs_handle *xsh, return 1; } - char *slash = strrchr(p, '/'); + slash = strrchr(p, '/'); if (slash) { char *val; *slash = '\0'; |