summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-12-08 19:15:25 +0100
committerNicholas Clark <nick@ccl4.org>2013-12-27 12:27:28 +0100
commite4fb8e2ded39e7068dc433a1346c20813c8c8e5c (patch)
treebb456f5c53c280d80926c5faff20584034274375 /perlio.c
parent0956f45d301b882c591ec0cc6017e669fb465887 (diff)
downloadperl-e4fb8e2ded39e7068dc433a1346c20813c8c8e5c.tar.gz
Fix sfio breakage in PerlIO_findFILE() caused by commit de009b76d60bdeb8.
One hunk of commit de009b76d60bdeb8 (April 2005) makes a variable const, which is then assigned to. This is in sfio-specific code, so was not noticed. This change was merged to maint-5.8 as part of commit f1c3982b668c9e30 (Sep 2005).
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index d89b9bb576..1369cd8476 100644
--- a/perlio.c
+++ b/perlio.c
@@ -416,7 +416,7 @@ FILE *
PerlIO_findFILE(PerlIO *pio)
{
const int fd = PerlIO_fileno(pio);
- FILE * const f = fdopen(fd, "r+");
+ FILE * f = fdopen(fd, "r+");
PerlIO_flush(pio);
if (!f && errno == EINVAL)
f = fdopen(fd, "w");