summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2006-02-05 15:56:43 -0600
committerSteve Peters <steve@fisharerojo.org>2006-02-06 04:48:04 +0000
commit8b38226bd5310e3491efebdb123b63d72520af10 (patch)
treeca69a53b2941756be604fc4607311f7b6936d7d0
parent27242d61a38f8623e0f0d6376d403101d7511b49 (diff)
downloadperl-8b38226bd5310e3491efebdb123b63d72520af10.tar.gz
Cleaning up shadowed variables
Message-Id: <B375E848-FA07-479D-9571-FA3925106D16@petdance.com> p4raw-id: //depot/perl@27102
-rw-r--r--op.c4
-rw-r--r--pp_ctl.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/op.c b/op.c
index 8dd29765ff..54c56c4a65 100644
--- a/op.c
+++ b/op.c
@@ -4883,8 +4883,8 @@ Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename)
if (gvcv) {
HV * const stash = GvSTASH(gvcv);
if (stash) {
- const char *name = HvNAME_get(stash);
- if ( strEQ(name,"autouse") ) {
+ const char *redefined_name = HvNAME_get(stash);
+ if ( strEQ(redefined_name,"autouse") ) {
const line_t oldline = CopLINE(PL_curcop);
if (PL_copline != NOLINE)
CopLINE_set(PL_curcop, PL_copline);
diff --git a/pp_ctl.c b/pp_ctl.c
index e5e4dd9a5d..3f0168e836 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3446,12 +3446,12 @@ PP(pp_entereval)
/* switch to eval mode */
if (PERLDB_NAMEEVAL && CopLINE(PL_curcop)) {
- SV * const sv = sv_newmortal();
- Perl_sv_setpvf(aTHX_ sv, "_<(eval %lu)[%s:%"IVdf"]",
+ SV * const temp_sv = sv_newmortal();
+ Perl_sv_setpvf(aTHX_ temp_sv, "_<(eval %lu)[%s:%"IVdf"]",
(unsigned long)++PL_evalseq,
CopFILE(PL_curcop), (IV)CopLINE(PL_curcop));
- tmpbuf = SvPVX(sv);
- len = SvCUR(sv);
+ tmpbuf = SvPVX(temp_sv);
+ len = SvCUR(temp_sv);
}
else
len = my_sprintf(tmpbuf, "_<(eval %lu)", (unsigned long)++PL_evalseq);