From dd2d2ad767496b8b8e31ccff38fa359454044475 Mon Sep 17 00:00:00 2001 From: duane Date: Sat, 27 Dec 2008 22:43:56 +0000 Subject: Warnings cleanup ... finish up earlier commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1289 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/jtag/vsllink.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/jtag/vsllink.c b/src/jtag/vsllink.c index 214ff806..cc85c5c1 100644 --- a/src/jtag/vsllink.c +++ b/src/jtag/vsllink.c @@ -200,8 +200,8 @@ void vsllink_reset(int trst, int srst); void vsllink_simple_command(u8 command); /* VSLLink tap buffer functions */ -void vsllink_tap_init(); -int vsllink_tap_execute(); +void vsllink_tap_init(void); +int vsllink_tap_execute(void); void vsllink_tap_ensure_space(int scans, int bytes); void vsllink_tap_append_scan(int length, u8 *buffer, scan_command_t *command, int offset); @@ -971,7 +971,7 @@ void vsllink_reset(int trst, int srst) result = vsllink_usb_write(vsllink_jtag_handle, 3); if (result != 3) { - LOG_ERROR("VSLLink command VSLLINK_CMD_SET_PORT failed (%d)"); + LOG_ERROR("VSLLink command VSLLINK_CMD_SET_PORT failed (%d)", result); } } @@ -1054,7 +1054,6 @@ typedef struct static int pending_scan_results_length; static pending_scan_result_t pending_scan_results_buffer[MAX_PENDING_SCAN_RESULTS]; -static int last_tms; void vsllink_tap_init() { @@ -1106,7 +1105,7 @@ void vsllink_tap_append_scan(int length, u8 *buffer, scan_command_t *command, in * For the purpose of padding we assume that we are in idle or pause state. */ int vsllink_tap_execute() { - int i, j; + int i; int result; int first = 0; @@ -1242,7 +1241,6 @@ void vsllink_usb_close(vsllink_jtag_t *vsllink_jtag) int vsllink_usb_message(vsllink_jtag_t *vsllink_jtag, int out_length, int in_length) { int result; - int result2; result = vsllink_usb_write(vsllink_jtag, out_length); if (result == out_length) -- cgit v1.2.3