summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:04:22 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:04:22 +0200
commit83ebddd519b2adecd5dace2d268243ad4bd34c9e (patch)
tree2cbe7ddc80214cbb6765f0b4e6ca6e70f60b51df
parent9161b5fc5c4655b5320b16d52f1ab3311d69e97d (diff)
downloadopenocd_libswd-83ebddd519b2adecd5dace2d268243ad4bd34c9e.tar.gz
openocd_libswd-83ebddd519b2adecd5dace2d268243ad4bd34c9e.tar.bz2
openocd_libswd-83ebddd519b2adecd5dace2d268243ad4bd34c9e.tar.xz
openocd_libswd-83ebddd519b2adecd5dace2d268243ad4bd34c9e.zip
breakpoint: -Wshadow warning fix
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/target/breakpoints.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c
index 637f681d..dc44642f 100644
--- a/src/target/breakpoints.c
+++ b/src/target/breakpoints.c
@@ -105,7 +105,7 @@ fail:
}
/* free up a breakpoint */
-static void breakpoint_free(struct target *target, struct breakpoint *breakpoint_remove)
+static void breakpoint_free(struct target *target, struct breakpoint *breakpoint_to_remove)
{
struct breakpoint *breakpoint = target->breakpoints;
struct breakpoint **breakpoint_p = &target->breakpoints;
@@ -113,7 +113,7 @@ static void breakpoint_free(struct target *target, struct breakpoint *breakpoint
while (breakpoint)
{
- if (breakpoint == breakpoint_remove)
+ if (breakpoint == breakpoint_to_remove)
break;
breakpoint_p = &breakpoint->next;
breakpoint = breakpoint->next;
@@ -246,7 +246,7 @@ bye:
return ERROR_OK;
}
-static void watchpoint_free(struct target *target, struct watchpoint *watchpoint_remove)
+static void watchpoint_free(struct target *target, struct watchpoint *watchpoint_to_remove)
{
struct watchpoint *watchpoint = target->watchpoints;
struct watchpoint **watchpoint_p = &target->watchpoints;
@@ -254,7 +254,7 @@ static void watchpoint_free(struct target *target, struct watchpoint *watchpoint
while (watchpoint)
{
- if (watchpoint == watchpoint_remove)
+ if (watchpoint == watchpoint_to_remove)
break;
watchpoint_p = &watchpoint->next;
watchpoint = watchpoint->next;