Silence Win32 compiler warnings following change 25280
Steve Hay [Thu, 11 Aug 2005 10:56:12 +0000 (10:56 +0000)]
p4raw-id: //depot/perl@25286

win32/win32.c

index 6cbc08a..b21f8cd 100644 (file)
@@ -394,7 +394,7 @@ has_shell_metachars(char *ptr)
  * the library functions will get the correct environment
  */
 PerlIO *
-Perl_my_popen(pTHX_ char *cmd, char *mode)
+Perl_my_popen(pTHX_ const char *cmd, const char *mode)
 {
 #ifdef FIXCMD
 #define fixcmd(x)   {                                  \
@@ -721,9 +721,9 @@ Perl_do_spawn_nowait(pTHX_ char *cmd)
 }
 
 bool
-Perl_do_exec(pTHX_ char *cmd)
+Perl_do_exec(pTHX_ const char *cmd)
 {
-    do_spawn2(aTHX_ cmd, EXECF_EXEC);
+    do_spawn2(aTHX_ (char *)cmd, EXECF_EXEC);
     return FALSE;
 }