summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-27 22:43:56 +0000
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-27 22:43:56 +0000
commitdd2d2ad767496b8b8e31ccff38fa359454044475 (patch)
tree910c748ef5b21c8cea56f8def68baeed74deea0a
parent8939333f51e17a605fd16b43499cbe332563285b (diff)
downloadopenocd+libswd-dd2d2ad767496b8b8e31ccff38fa359454044475.tar.gz
openocd+libswd-dd2d2ad767496b8b8e31ccff38fa359454044475.tar.bz2
openocd+libswd-dd2d2ad767496b8b8e31ccff38fa359454044475.tar.xz
openocd+libswd-dd2d2ad767496b8b8e31ccff38fa359454044475.zip
Warnings cleanup ... finish up earlier commit
git-svn-id: svn://svn.berlios.de/openocd/trunk@1289 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/jtag/vsllink.c10
1 files changed, 4 insertions, 6 deletions
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)