aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_exec.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2010-09-16 17:39:33 +0100
committerAndre Przywara <andre.przywara@amd.com>2010-09-16 17:39:33 +0100
commit68c2232d04eb3aac2de51291f2e0531203782630 (patch)
tree6c7f6477d5bfff391aa4f2468acb3a0054ddf7bf /tools/libxl/libxl_exec.c
parent6d4ba52d4915e16aa8cba141cdf287688a92ec1d (diff)
downloadxen-68c2232d04eb3aac2de51291f2e0531203782630.tar.gz
xen-68c2232d04eb3aac2de51291f2e0531203782630.tar.bz2
xen-68c2232d04eb3aac2de51291f2e0531203782630.zip
libxl: fix compiler warning with fork_exec_bootloader
At least one of my compilers complains about the broken const qualifier in the fork_exec_bootloader() call (despite the cast). Fix this properly by propagating the const attribute down the call stack. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_exec.c')
-rw-r--r--tools/libxl/libxl_exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxl/libxl_exec.c b/tools/libxl/libxl_exec.c
index 56d738e0f1..31980fb1ba 100644
--- a/tools/libxl/libxl_exec.c
+++ b/tools/libxl/libxl_exec.c
@@ -35,7 +35,8 @@ static int call_waitpid(pid_t (*waitpid_cb)(pid_t, int *, int), pid_t pid, int *
return (waitpid_cb) ? waitpid_cb(pid, status, options) : waitpid(pid, status, options);
}
-void libxl__exec(int stdinfd, int stdoutfd, int stderrfd, char *arg0, char **args)
+void libxl__exec(int stdinfd, int stdoutfd, int stderrfd, const char *arg0,
+ char **args)
/* call this in the child */
{
int i;