summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-10-29 23:20:01 +0000
committerNicholas Clark <nick@ccl4.org>2008-10-29 23:20:01 +0000
commita45c7426c93f17067d1734c68cb400246e1db490 (patch)
treee085a582d4f0b4b9dac9b8741884c96da1bee43a /pp_sys.c
parent76f68e9bb86f29e34e2aeb5c177571288f05b7ca (diff)
downloadperl-a45c7426c93f17067d1734c68cb400246e1db490.tar.gz
Add MUTABLE_IO(), and eliminate (IO *) casts in *.c.
p4raw-id: //depot/perl@34654
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 033482d66b..0181e7eea4 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2207,7 +2207,7 @@ PP(pp_truncate)
goto do_ftruncate_gv;
}
else if (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVIO) {
- io = (IO*) SvRV(sv); /* *main::FRED{IO} for example */
+ io = MUTABLE_IO(SvRV(sv)); /* *main::FRED{IO} for example */
goto do_ftruncate_io;
}
@@ -2854,7 +2854,7 @@ PP(pp_stat)
goto do_fstat_warning_check;
goto do_fstat;
} else if (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVIO) {
- io = (IO*)SvRV(sv);
+ io = MUTABLE_IO(SvRV(sv));
if (PL_op->op_type == OP_LSTAT)
goto do_fstat_warning_check;
goto do_fstat_have_io;