summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2007-12-20 18:29:25 +0000
committerSteve Peters <steve@fisharerojo.org>2007-12-20 21:52:06 +0000
commit360ea906b19e0bdcdbc4a4ce534a035d46a949d5 (patch)
treee65b89c54ec06303383cf873c456c52acefd5b8e /doio.c
parent878d132a73f5d089e821fedd49aa4835a2786d1d (diff)
downloadperl-360ea906b19e0bdcdbc4a4ce534a035d46a949d5.tar.gz
make miniperl -Wwrite-strings clean
From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D09399A@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@32681
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/doio.c b/doio.c
index 5ccf73bd68..5e7a5a1cf1 100644
--- a/doio.c
+++ b/doio.c
@@ -1384,14 +1384,14 @@ Perl_do_aexec5(pTHX_ SV *really, register SV **mark, register SV **sp,
Perl_croak(aTHX_ "exec? I'm not *that* kind of operating system");
#else
if (sp > mark) {
- char **a;
+ const char **a;
const char *tmps = NULL;
- Newx(PL_Argv, sp - mark + 1, char*);
+ Newx(PL_Argv, sp - mark + 1, const char*);
a = PL_Argv;
while (++mark <= sp) {
if (*mark)
- *a++ = (char*)SvPV_nolen_const(*mark);
+ *a++ = SvPV_nolen_const(*mark);
else
*a++ = "";
}
@@ -1430,7 +1430,7 @@ bool
Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report)
{
dVAR;
- register char **a;
+ register const char **a;
register char *s;
char *buf;
char *cmd;
@@ -1526,7 +1526,7 @@ Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report)
}
}
- 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;) {
@@ -1542,7 +1542,7 @@ Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report)
*a = NULL;
if (PL_Argv[0]) {
PERL_FPU_PRE_EXEC
- PerlProc_execvp(PL_Argv[0],PL_Argv);
+ PerlProc_execvp(PL_Argv[0],EXEC_ARGV_CAST(PL_Argv));
PERL_FPU_POST_EXEC
if (errno == ENOEXEC) { /* for system V NIH syndrome */
do_execfree();