diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-12-28 07:55:45 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-12-28 08:35:37 +0000 |
commit | a53904572d7a4d49d78b8fb0a3c739b451faad7e (patch) | |
tree | 4876ce6df10668c49c0e7ea612c1c6abbddc4ae2 /doio.c | |
parent | 46d2cc544f36e7450798245748cda64959a6b884 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) */ |