aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/xl.h
diff options
context:
space:
mode:
authorIan Jackson <Ian.Jackson@eu.citrix.com>2010-11-08 17:05:14 +0000
committerIan Jackson <Ian.Jackson@eu.citrix.com>2010-11-08 17:05:14 +0000
commitdeaa319f11a598b4ddb22ac840b3ba66585a2a65 (patch)
tree76750201b700368997ecbf29b5c29964758198de /tools/libxl/xl.h
parent0d849111924534fe280d7d9ab6c2bf97772c3daf (diff)
downloadxen-deaa319f11a598b4ddb22ac840b3ba66585a2a65.tar.gz
xen-deaa319f11a598b4ddb22ac840b3ba66585a2a65.tar.bz2
xen-deaa319f11a598b4ddb22ac840b3ba66585a2a65.zip
tools: xl: more const-correctness
The implementation of xl was lacking a lot of consts on its char*s. In this patch we improve matters. It doesn't fix everything. In particular: * I only changed char*s and not other structs that ought to be const. * libxl_send_debug_keys should take a const char* but the pointer ends up getting sent to DECLARE_HYPERCALL_BOUNCE from xc_private.h and that won't take a const char*. I wasn't sure what to do so I have left it. * There is a great deal of in-place string tokenisation (both ad-hoc, and using strtok_r). I haven't changed any of that. * I haven't changed any of the occurrences of char **argv because of the castless assignment incompatibility between const char** and char **. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.h')
-rw-r--r--tools/libxl/xl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl.h b/tools/libxl/xl.h
index cc935085aa..69eb9dfc88 100644
--- a/tools/libxl/xl.h
+++ b/tools/libxl/xl.h
@@ -86,7 +86,7 @@ int main_cpupoolcpuadd(int argc, char **argv);
int main_cpupoolcpuremove(int argc, char **argv);
int main_cpupoolmigrate(int argc, char **argv);
-void help(char *command);
+void help(const char *command);
extern struct cmd_spec cmd_table[];
extern int cmdtable_len;