diff options
author | Eric Blake <ebb9@byu.net> | 2009-03-06 14:29:53 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-03-06 14:29:53 +0100 |
commit | a64a69d30a583fef8c245cd5988b35934e70bcec (patch) | |
tree | e0d158752a219a97f9424ee70d495e3f9abd5668 /lib/execute.c | |
parent | 67a756b7b4cb6ef0d311ab30ab9a99990a219615 (diff) | |
download | gnulib-a64a69d30a583fef8c245cd5988b35934e70bcec.tar.gz |
Add casts, to avoid warnings.
Diffstat (limited to 'lib/execute.c')
-rw-r--r-- | lib/execute.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/execute.c b/lib/execute.c index c9f25b52d2..a6911d97b3 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -154,14 +154,16 @@ execute (const char *progname, copy of the environment block - ignoring the effects of putenv() and [un]setenv(). */ { - exitcode = spawnvpe (P_WAIT, prog_path, prog_argv, environ); + exitcode = spawnvpe (P_WAIT, prog_path, (const char **) prog_argv, + (const char **) environ); if (exitcode < 0 && errno == ENOEXEC) { /* prog is not an native executable. Try to execute it as a shell script. Note that prepare_spawn() has already prepended a hidden element "sh.exe" to prog_argv. */ --prog_argv; - exitcode = spawnvpe (P_WAIT, prog_argv[0], prog_argv, environ); + exitcode = spawnvpe (P_WAIT, prog_argv[0], (const char **) prog_argv, + (const char **) environ); } } if (nulloutfd >= 0) |