summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-12-28 07:55:45 +0000
committerNicholas Clark <nick@ccl4.org>2010-12-28 08:35:37 +0000
commita53904572d7a4d49d78b8fb0a3c739b451faad7e (patch)
tree4876ce6df10668c49c0e7ea612c1c6abbddc4ae2 /doio.c
parent46d2cc544f36e7450798245748cda64959a6b884 (diff)
downloadperl-a53904572d7a4d49d78b8fb0a3c739b451faad7e.tar.gz
Extract the OP_phoney_* code from report_evil_fh() into report_wrongway_fh()
Previously Perl_report_evil_fh()'s body was just an if/else at the top level - a good sign that it is actually implementing two disjoint functions.
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 526e1b5df6..1ab91f722c 100644
--- a/doio.c
+++ b/doio.c
@@ -997,7 +997,7 @@ Perl_do_eof(pTHX_ GV *gv)
if (!io)
return TRUE;
else if ((IoTYPE(io) == IoTYPE_WRONLY) && ckWARN(WARN_IO))
- report_evil_fh(gv, io, OP_phoney_OUTPUT_ONLY);
+ report_wrongway_fh(gv, '>');
while (IoIFP(io)) {
if (PerlIO_has_cntptr(IoIFP(io))) { /* (the code works without this) */