summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:27:08 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 23:27:08 +0200
commit4d0d649ef9a066c8662e2ffcc597614fe917fefc (patch)
tree696ee3bf0f21ac65b08cbd704ee2c25c7a6dc39c /src
parent26a77f71e1d44d12af549c618a1b7010ff83ac2b (diff)
downloadopenocd_libswd-4d0d649ef9a066c8662e2ffcc597614fe917fefc.tar.gz
openocd_libswd-4d0d649ef9a066c8662e2ffcc597614fe917fefc.tar.bz2
openocd_libswd-4d0d649ef9a066c8662e2ffcc597614fe917fefc.tar.xz
openocd_libswd-4d0d649ef9a066c8662e2ffcc597614fe917fefc.zip
mips_ejtag: -Wshadow warning fixes
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r--src/target/mips_ejtag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c
index 84ad5294..33507b55 100644
--- a/src/target/mips_ejtag.c
+++ b/src/target/mips_ejtag.c
@@ -304,7 +304,7 @@ int mips_ejtag_init(struct mips_ejtag *ejtag_info)
return ERROR_OK;
}
-int mips_ejtag_fastdata_scan(struct mips_ejtag *ejtag_info, int write, uint32_t *data)
+int mips_ejtag_fastdata_scan(struct mips_ejtag *ejtag_info, int write_t, uint32_t *data)
{
struct jtag_tap *tap;
tap = ejtag_info->tap;
@@ -325,7 +325,7 @@ int mips_ejtag_fastdata_scan(struct mips_ejtag *ejtag_info, int write, uint32_t
fields[1].num_bits = 32;
fields[1].out_value = t;
- if (write)
+ if (write_t)
{
fields[1].in_value = NULL;
buf_set_u32(t, 0, 32, *data);