summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2002-09-07 00:00:14 +0100
committerhv <hv@crypt.org>2002-09-08 16:23:49 +0000
commitfd322ea4b51d50f9797ac81898fa52eb789ab9ba (patch)
tree942d74a6693e79708a4901bed6778a962063664d /util.c
parent3aed30dc9bb800ec04a3f44e5176c45032741bdd (diff)
downloadperl-fd322ea4b51d50f9797ac81898fa52eb789ab9ba.tar.gz
tiddly tidy up for util.c
Message-ID: <20020906220013.GD428@Bagpuss.unfortu.net> p4raw-id: //depot/perl@17871
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 9dcade23fb..ae5adb6007 100644
--- a/util.c
+++ b/util.c
@@ -3499,14 +3499,14 @@ Perl_report_evil_fh(pTHX_ GV *gv, IO *io, I32 op)
if (op == OP_phoney_OUTPUT_ONLY || op == OP_phoney_INPUT_ONLY) {
if (ckWARN(WARN_IO)) {
+ const char *direction = (op == OP_phoney_INPUT_ONLY) ? "in" : "out";
if (name && *name)
Perl_warner(aTHX_ packWARN(WARN_IO),
"Filehandle %s opened only for %sput",
- name, (op == OP_phoney_INPUT_ONLY ? "in" : "out"));
+ name, direction);
else
Perl_warner(aTHX_ packWARN(WARN_IO),
- "Filehandle opened only for %sput",
- (op == OP_phoney_INPUT_ONLY ? "in" : "out"));
+ "Filehandle opened only for %sput", direction);
}
}
else {