summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:09:12 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:09:12 +0200
commit748863c2e23aca05a81007ca87129a30eac005c4 (patch)
treebef3fcbee95f0e8f3e0f051f07894bd133c2946e /src/target
parent64cf05f0c4dd5bd3856a57043c73933be0b2ba04 (diff)
downloadopenocd+libswd-748863c2e23aca05a81007ca87129a30eac005c4.tar.gz
openocd+libswd-748863c2e23aca05a81007ca87129a30eac005c4.tar.bz2
openocd+libswd-748863c2e23aca05a81007ca87129a30eac005c4.tar.xz
openocd+libswd-748863c2e23aca05a81007ca87129a30eac005c4.zip
arm_dpm: -Wshadow warning fix
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm_dpm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm_dpm.c b/src/target/arm_dpm.c
index 213afbd3..4fbe5e3b 100644
--- a/src/target/arm_dpm.c
+++ b/src/target/arm_dpm.c
@@ -773,11 +773,11 @@ static int dpm_remove_breakpoint(struct target *target, struct breakpoint *bp)
return retval;
}
-static int dpm_watchpoint_setup(struct arm_dpm *dpm, unsigned index,
+static int dpm_watchpoint_setup(struct arm_dpm *dpm, unsigned index_t,
struct watchpoint *wp)
{
int retval;
- struct dpm_wp *dwp = dpm->dwp + index;
+ struct dpm_wp *dwp = dpm->dwp + index_t;
uint32_t control;
/* this hardware doesn't support data value matching or masking */
@@ -804,7 +804,7 @@ static int dpm_watchpoint_setup(struct arm_dpm *dpm, unsigned index,
}
dwp->bpwp.control = control;
- dpm->dwp[index].wp = wp;
+ dpm->dwp[index_t].wp = wp;
return retval;
}