summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-08-10 11:35:53 +0300
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-08-10 08:22:01 +0000
commit7c0dd7caddd4c6aa0c561002ae25414a8910234e (patch)
tree31fe4dfd9e1b66eab254aafea9a3f16acf568a81 /doio.c
parent317f7c8a941b7bf35ae65f6c2b1ed46e040c4441 (diff)
downloadperl-7c0dd7caddd4c6aa0c561002ae25414a8910234e.tar.gz
doio.c: vararg NULLs must be cast right
Message-Id: <200608100535.k7A5Zr2Z156515@kosh.hut.fi> p4raw-id: //depot/perl@28688
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doio.c b/doio.c
index 399cadf3eb..bc301300a7 100644
--- a/doio.c
+++ b/doio.c
@@ -1481,7 +1481,7 @@ Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report)
if (s[-1] == '\'') {
*--s = '\0';
PERL_FPU_PRE_EXEC
- PerlProc_execl(PL_cshname, "csh", flags, ncmd, NULL);
+ PerlProc_execl(PL_cshname, "csh", flags, ncmd, (char*)NULL);
PERL_FPU_POST_EXEC
*s = '\'';
S_exec_failed(aTHX_ PL_cshname, fd, do_report);
@@ -1530,7 +1530,7 @@ Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report)
}
doshell:
PERL_FPU_PRE_EXEC
- PerlProc_execl(PL_sh_path, "sh", "-c", cmd, NULL);
+ PerlProc_execl(PL_sh_path, "sh", "-c", cmd, (char *)NULL);
PERL_FPU_POST_EXEC
S_exec_failed(aTHX_ PL_sh_path, fd, do_report);
Safefree(cmd);