summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorPeter Prymmer <PPrymmer@factset.com>2001-05-04 10:29:02 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-05 02:03:49 +0000
commit0dac06c4eedd128f56f798872a782ff65b439378 (patch)
tree3ae94f385cc452d4cd1af80e8e2c9d0b14c0d6c5 /perlio.c
parent0c35a64037b9819bd90f46802ea0c8b26b5bd422 (diff)
downloadperl-0dac06c4eedd128f56f798872a782ff65b439378.tar.gz
fix const poisioning in PerlIO_openn->fdopen->openn
Message-ID: <Pine.OSF.4.10.10105041727420.67333-100000@aspara.forte.com> p4raw-id: //depot/perl@9993
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index 3f15c4eb17..7580f2a013 100644
--- a/perlio.c
+++ b/perlio.c
@@ -120,7 +120,7 @@ PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd, int imode, int
{
fd = PerlLIO_open3(name,imode,perm);
if (fd >= 0)
- return PerlIO_fdopen(fd,mode+1);
+ return PerlIO_fdopen(fd,(char *)mode+1);
}
else if (old)
{
@@ -134,7 +134,7 @@ PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd, int imode, int
}
else
{
- return PerlIO_fdopen(fd,mode);
+ return PerlIO_fdopen(fd,(char *)mode);
}
return NULL;
}