diff options
author | Steve Hay <SteveHay@planit.com> | 2005-08-12 15:26:11 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2005-08-12 15:26:11 +0000 |
commit | 08039b818b7a6e623279d03df2f71c92137e1052 (patch) | |
tree | a7025b83b9a44c5008fe655b3fb7510c1dfbce53 /win32 | |
parent | 734c7f37126dfb8ae378e46a71a7aae194665a99 (diff) | |
download | perl-08039b818b7a6e623279d03df2f71c92137e1052.tar.gz |
Make change 25286 better
Thanks to John E. Malmberg <wb8tyw@qsl.net> for pointing this out.
p4raw-id: //depot/perl@25288
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/win32/win32.c b/win32/win32.c index b21f8cd58f..3740e7054d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -92,8 +92,8 @@ int _fcloseall(); static void get_shell(void); static long tokenize(const char *str, char **dest, char ***destv); -static int do_spawn2(pTHX_ char *cmd, int exectype); -static BOOL has_shell_metachars(char *ptr); +static int do_spawn2(pTHX_ const char *cmd, int exectype); +static BOOL has_shell_metachars(const char *ptr); static long filetime_to_clock(PFILETIME ft); static BOOL filetime_from_time(PFILETIME ft, time_t t); static char * get_emd_part(SV **leading, char *trailing, ...); @@ -349,7 +349,7 @@ win32_get_vendorlib(const char *pl) } static BOOL -has_shell_metachars(char *ptr) +has_shell_metachars(const char *ptr) { int inquote = 0; char quote = '\0'; @@ -618,7 +618,7 @@ find_next_space(const char *s) } static int -do_spawn2(pTHX_ char *cmd, int exectype) +do_spawn2(pTHX_ const char *cmd, int exectype) { char **a; char *s; @@ -671,7 +671,7 @@ do_spawn2(pTHX_ char *cmd, int exectype) Newx(argv, w32_perlshell_items + 2, char*); while (++i < w32_perlshell_items) argv[i] = w32_perlshell_vec[i]; - argv[i++] = cmd; + argv[i++] = (char *)cmd; argv[i] = Nullch; switch (exectype) { case EXECF_SPAWN: @@ -723,7 +723,7 @@ Perl_do_spawn_nowait(pTHX_ char *cmd) bool Perl_do_exec(pTHX_ const char *cmd) { - do_spawn2(aTHX_ (char *)cmd, EXECF_EXEC); + do_spawn2(aTHX_ cmd, EXECF_EXEC); return FALSE; } |