diff options
author | Jerry D. Hedden <jdhedden@cpan.org> | 2007-12-21 04:13:41 -0500 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2007-12-21 14:19:17 +0000 |
commit | 3f5211dd25d06319ac363a33485c17282b4021a7 (patch) | |
tree | 4a1fe1d30c6e031213302efa457eb4430aa7a9f5 /cygwin | |
parent | 22883ac550dc5dbe0c35890635d3c37c4084f3a1 (diff) | |
download | perl-3f5211dd25d06319ac363a33485c17282b4021a7.tar.gz |
const'ing in cygwin.c
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510712210613s71712346i6e9f2b5e7275aa34@mail.gmail.com>
p4raw-id: //depot/perl@32689
Diffstat (limited to 'cygwin')
-rw-r--r-- | cygwin/cygwin.c | 5 |
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;) { |