diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-06 03:45:41 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-06 03:45:41 +0000 |
commit | 5095244257e3c5d9389813ccbcd2187ff6e2e91f (patch) | |
tree | 79863b1084bbf5773db8edf30abac4473e3cf831 /util.c | |
parent | 2dd78f96d61cc6382dc72214930c993567209597 (diff) | |
download | perl-5095244257e3c5d9389813ccbcd2187ff6e2e91f.tar.gz |
Have symbols for the IoTYPEs.
p4raw-id: //depot/perl@6532
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3897,7 +3897,7 @@ Perl_report_evil_fh(pTHX_ GV *gv, IO *io, I32 op) op == OP_LEAVEWRITE ? "write" : PL_op_desc[op]; char *pars = OP_IS_FILETEST(op) ? "" : "()"; - char *type = OP_IS_SOCKET(op) || (io && IoTYPE(io) == 's') ? + char *type = OP_IS_SOCKET(op) || (io && IoTYPE(io) == IoTYPE_SOCKET) ? "socket" : "filehandle"; char *name = NULL; @@ -3907,7 +3907,7 @@ Perl_report_evil_fh(pTHX_ GV *gv, IO *io, I32 op) name = SvPVX(sv); } - if (io && IoTYPE(io) == ' ') { + if (io && IoTYPE(io) == IoTYPE_CLOSED) { vile = "closed"; warn = WARN_CLOSED; } |