From: Spencer Oliver Date: Tue, 15 Nov 2011 09:39:10 +0000 (+0000) Subject: usbprog: fix shadowed declaration warning X-Git-Tag: v0.6.0-rc1~411 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dbf25984cda750dd4ebd3be3b267e6b39bec4111;p=openocd usbprog: fix shadowed declaration warning see Trac #38 Change-Id: If86fda797391f10d745384794b68e60380ef0b21 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/204 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- diff --git a/src/jtag/drivers/usbprog.c b/src/jtag/drivers/usbprog.c index 225a3c59..7d10d0f4 100644 --- a/src/jtag/drivers/usbprog.c +++ b/src/jtag/drivers/usbprog.c @@ -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;