]> git.sur5r.net Git - openocd/commitdiff
usbprog: fix shadowed declaration warning
authorSpencer Oliver <spen@spen-soft.co.uk>
Tue, 15 Nov 2011 09:39:10 +0000 (09:39 +0000)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Fri, 18 Nov 2011 22:13:08 +0000 (22:13 +0000)
see Trac #38

Change-Id: If86fda797391f10d745384794b68e60380ef0b21
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/204
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/jtag/drivers/usbprog.c

index 225a3c59d7fadede5b8d68729ec64305412e1817..7d10d0f407023adf23ff57094396b0a3861090ff 100644 (file)
@@ -317,7 +317,7 @@ static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int
 
        usbprog_jtag_tms_send(usbprog_jtag_handle);
 
-       void (*f)(struct usbprog_jtag *usbprog_jtag, char * buffer, int size);
+       void (*f)(struct usbprog_jtag *usbprog_jtag, char * buffer_local, int size);
        switch (type) {
        case SCAN_OUT: f = &usbprog_jtag_write_tdi; break;
        case SCAN_IN: f = &usbprog_jtag_read_tdo; break;