summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cygwin/cygwin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c
index c3bec61698..b1db756dc1 100644
--- a/cygwin/cygwin.c
+++ b/cygwin/cygwin.c
@@ -83,7 +83,8 @@ int
do_spawn (char *cmd)
{
dTHX;
- char **a,*s,*metachars = "$&*(){}[]'\";\\?>|<~`\n";
+ char const **a;
+ char *s,*metachars = "$&*(){}[]'\";\\?>|<~`\n";
const char *command[4];
while (*cmd && isSPACE(*cmd))
@@ -121,7 +122,7 @@ do_spawn (char *cmd)
return do_spawnvp("sh",command);
}
- Newx (PL_Argv,(s-cmd)/2+2,char*);
+ Newx (PL_Argv,(s-cmd)/2+2,const char*);
PL_Cmd=savepvn (cmd,s-cmd);
a=PL_Argv;
for (s=PL_Cmd; *s;) {