summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-27 22:35:35 +0000
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-27 22:35:35 +0000
commitcd05476e6d176e162a673ac7d7171acba258243b (patch)
tree50bae208475e67f75ab29e8feac2f99b95fc9ae7 /src
parentb18966d0ba7f53153ed3e445aa13e71771a73712 (diff)
downloadopenocd+libswd-cd05476e6d176e162a673ac7d7171acba258243b.tar.gz
openocd+libswd-cd05476e6d176e162a673ac7d7171acba258243b.tar.bz2
openocd+libswd-cd05476e6d176e162a673ac7d7171acba258243b.tar.xz
openocd+libswd-cd05476e6d176e162a673ac7d7171acba258243b.zip
Tweaks - old crusty code with some warnings & errors - minor stuff
git-svn-id: svn://svn.berlios.de/openocd/trunk@1287 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/bitq.c8
-rw-r--r--src/jtag/rlink/rlink.c15
2 files changed, 10 insertions, 13 deletions
diff --git a/src/jtag/bitq.c b/src/jtag/bitq.c
index 6dc9ec96..a2e7c438 100644
--- a/src/jtag/bitq.c
+++ b/src/jtag/bitq.c
@@ -169,10 +169,12 @@ void bitq_path_move(pathmove_command_t *cmd)
int i;
for (i=0; i<=cmd->num_states; i++) {
- if (tap_transitions[cur_state].low == cmd->path[i]) bitq_io(0, 0, 0);
- else if (tap_transitions[cur_state].high == cmd->path[i]) bitq_io(1, 0, 0);
+ if (tap_transitions[cur_state].low == cmd->path[i])
+ bitq_io(0, 0, 0);
+ else if (tap_transitions[cur_state].high == cmd->path[i])
+ bitq_io(1, 0, 0);
else {
- LOG_ERROR("BUG: %s -> %s isn't a valid TAP transition", jtag_state_name(cur_state), jtag_state_name(cmd->path[i)]);
+ LOG_ERROR("BUG: %s -> %s isn't a valid TAP transition", jtag_state_name(cur_state), jtag_state_name(cmd->path[i]));
exit(-1);
}
diff --git a/src/jtag/rlink/rlink.c b/src/jtag/rlink/rlink.c
index 188ea56d..4b6dde2f 100644
--- a/src/jtag/rlink/rlink.c
+++ b/src/jtag/rlink/rlink.c
@@ -427,8 +427,7 @@ dtc_load_from_buffer(
*/
static
int
-dtc_start_download(
-) {
+dtc_start_download(void) {
int usb_err;
u8 ep2txr;
@@ -611,8 +610,7 @@ struct {
static
int
-dtc_queue_init(
-) {
+dtc_queue_init(void) {
dtc_queue.rq_head = NULL;
dtc_queue.rq_tail = NULL;
dtc_queue.cmd_index = 0;
@@ -663,8 +661,7 @@ dtc_queue_enqueue_reply(
static
int
-dtc_queue_run(
-) {
+dtc_queue_run(void) {
dtc_reply_queue_entry_t *rq_p, *rq_next;
int retval;
int usb_err;
@@ -808,8 +805,7 @@ dtc_queue_run(
static
int
-tap_state_queue_init(
-) {
+tap_state_queue_init(void) {
tap_state_queue.length = 0;
tap_state_queue.buffer = 0;
return(0);
@@ -818,8 +814,7 @@ tap_state_queue_init(
static
int
-tap_state_queue_run(
-) {
+tap_state_queue_run(void) {
int i;
int bits;
u8 byte;