diff options
author | Andre Przywara <andre.przywara@amd.com> | 2010-09-16 17:39:33 +0100 |
---|---|---|
committer | Andre Przywara <andre.przywara@amd.com> | 2010-09-16 17:39:33 +0100 |
commit | 68c2232d04eb3aac2de51291f2e0531203782630 (patch) | |
tree | 6c7f6477d5bfff391aa4f2468acb3a0054ddf7bf /tools/libxl/libxl_exec.c | |
parent | 6d4ba52d4915e16aa8cba141cdf287688a92ec1d (diff) | |
download | xen-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.c | 3 |
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; |