diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-12-28 09:09:44 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-12-28 10:03:48 +0000 |
commit | 831e4cc39fb21ae91f3e1e38353c1f0efa8f6761 (patch) | |
tree | 487258c1a5325df67a5fe1536ae4583b943ca0f6 /pp_hot.c | |
parent | 65820a288a7a8e6320b960e1ffcb1dc9577b9650 (diff) | |
download | perl-831e4cc39fb21ae91f3e1e38353c1f0efa8f6761.tar.gz |
Argument op to report_evil_fh() is always PL_op->op_type, so need not be passed
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -751,7 +751,7 @@ PP(pp_print) && (mg = SvTIED_mg((const SV *)io, PERL_MAGIC_tiedscalar))) goto had_magic; if (ckWARN2(WARN_UNOPENED,WARN_CLOSED)) - report_evil_fh(gv, PL_op->op_type); + report_evil_fh(gv); SETERRNO(EBADF,RMS_IFI); goto just_say_no; } @@ -760,7 +760,7 @@ PP(pp_print) if (IoIFP(io)) report_wrongway_fh(gv, '<'); else if (ckWARN2(WARN_UNOPENED,WARN_CLOSED)) - report_evil_fh(gv, PL_op->op_type); + report_evil_fh(gv); } SETERRNO(EBADF,IoIFP(io)?RMS_FAC:RMS_IFI); goto just_say_no; @@ -1637,7 +1637,7 @@ Perl_do_readline(pTHX) "glob failed (can't start child: %s)", Strerror(errno)); else - report_evil_fh(PL_last_in_gv, PL_op->op_type); + report_evil_fh(PL_last_in_gv); } if (gimme == G_SCALAR) { /* undef TARG, and push that undefined value */ |