diff options
author | Peter Prymmer <PPrymmer@factset.com> | 2001-05-04 10:29:02 -0700 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-05 02:03:49 +0000 |
commit | 0dac06c4eedd128f56f798872a782ff65b439378 (patch) | |
tree | 3ae94f385cc452d4cd1af80e8e2c9d0b14c0d6c5 /perlio.c | |
parent | 0c35a64037b9819bd90f46802ea0c8b26b5bd422 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |