diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-06-17 23:12:48 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-17 18:14:12 +0200 |
commit | d4e4da0fa177c640196e5bc3476ed03c3a70be00 (patch) | |
tree | 2ea9bcbe6ae192df080d18521cd7887476d7feb9 /src | |
parent | 8a2808681e932b6644f572717885c8f8f360e9fa (diff) | |
download | openocd+libswd-d4e4da0fa177c640196e5bc3476ed03c3a70be00.tar.gz openocd+libswd-d4e4da0fa177c640196e5bc3476ed03c3a70be00.tar.bz2 openocd+libswd-d4e4da0fa177c640196e5bc3476ed03c3a70be00.tar.xz openocd+libswd-d4e4da0fa177c640196e5bc3476ed03c3a70be00.zip |
vsllink: fix -Wshadow warning
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/drivers/vsllink.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jtag/drivers/vsllink.c b/src/jtag/drivers/vsllink.c index 450ce062..7533a090 100644 --- a/src/jtag/drivers/vsllink.c +++ b/src/jtag/drivers/vsllink.c @@ -699,20 +699,20 @@ static void vsllink_tap_ensure_pending(int scans) static void vsllink_tap_append_step(int tms, int tdi) { - int index = tap_length / 8; + int index_var = tap_length / 8; int bit_index = tap_length % 8; uint8_t bit = 1 << bit_index; if (tms) - tms_buffer[index] |= bit; + tms_buffer[index_var] |= bit; else - tms_buffer[index] &= ~bit; + tms_buffer[index_var] &= ~bit; if (tdi) - tdi_buffer[index] |= bit; + tdi_buffer[index_var] |= bit; else - tdi_buffer[index] &= ~bit; + tdi_buffer[index_var] &= ~bit; tap_length++; |