diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 05:52:51 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:05 -0800 |
commit | af3f4a0bbefd796bd40602ae28f66dd373272e6a (patch) | |
tree | 0a7bbcb02c1b95055617b87dd5c67466e0ceb28d /src | |
parent | e11c5a3b42a2a39c5b24c9a19ba03f7b16caf3d7 (diff) | |
download | openocd+libswd-af3f4a0bbefd796bd40602ae28f66dd373272e6a.tar.gz openocd+libswd-af3f4a0bbefd796bd40602ae28f66dd373272e6a.tar.bz2 openocd+libswd-af3f4a0bbefd796bd40602ae28f66dd373272e6a.tar.xz openocd+libswd-af3f4a0bbefd796bd40602ae28f66dd373272e6a.zip |
statemove_command_t -> struct statemove_command
Remove misleading typedef from struct statemove_command.
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/commands.h | 7 | ||||
-rw-r--r-- | src/jtag/driver.c | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/jtag/commands.h b/src/jtag/commands.h index d13a9ab4..858f7aad 100644 --- a/src/jtag/commands.h +++ b/src/jtag/commands.h @@ -57,11 +57,10 @@ struct scan_command { tap_state_t end_state; }; -typedef struct statemove_command_s -{ +struct statemove_command { /// state in which JTAG commands should finish tap_state_t end_state; -} statemove_command_t; +}; typedef struct pathmove_command_s { @@ -114,7 +113,7 @@ typedef struct sleep_command_s typedef union jtag_command_container_u { struct scan_command* scan; - statemove_command_t* statemove; + struct statemove_command* statemove; pathmove_command_t* pathmove; runtest_command_t* runtest; stableclocks_command_t* stableclocks; diff --git a/src/jtag/driver.c b/src/jtag/driver.c index d50ae905..6f205734 100644 --- a/src/jtag/driver.c +++ b/src/jtag/driver.c @@ -377,7 +377,7 @@ int interface_jtag_add_tlr(void) cmd->type = JTAG_STATEMOVE; - cmd->cmd.statemove = cmd_queue_alloc(sizeof(statemove_command_t)); + cmd->cmd.statemove = cmd_queue_alloc(sizeof(struct statemove_command)); cmd->cmd.statemove->end_state = state; return ERROR_OK; |