summaryrefslogtreecommitdiff
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
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
-rw-r--r--perlio.c4
-rw-r--r--vms/vmsish.h2
2 files changed, 3 insertions, 3 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;
}
diff --git a/vms/vmsish.h b/vms/vmsish.h
index 01aa644b23..2eb8e93c5f 100644
--- a/vms/vmsish.h
+++ b/vms/vmsish.h
@@ -772,7 +772,7 @@ int my_vfork ();
bool Perl_vms_do_exec (pTHX_ char *);
unsigned long int Perl_do_aspawn (pTHX_ void *, void **, void **);
unsigned long int Perl_do_spawn (pTHX_ char *);
-FILE * my_fdopen (int, char *);
+FILE * my_fdopen (int, const char *);
int my_fclose (FILE *);
int my_fwrite (void *, size_t, size_t, FILE *);
int Perl_my_flush (pTHX_ FILE *);