diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 21:24:45 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 21:39:46 -0800 |
commit | db6c2871dd3f106ca8b5dc8828a17f8b729de181 (patch) | |
tree | c27f09b1ece0c3eb68715396c51a5021859f3583 /src/xsvf | |
parent | 841721929a63bb77379b1598d91ed85b85021734 (diff) | |
download | openocd_libswd-db6c2871dd3f106ca8b5dc8828a17f8b729de181.tar.gz openocd_libswd-db6c2871dd3f106ca8b5dc8828a17f8b729de181.tar.bz2 openocd_libswd-db6c2871dd3f106ca8b5dc8828a17f8b729de181.tar.xz openocd_libswd-db6c2871dd3f106ca8b5dc8828a17f8b729de181.zip |
svf,xsvf,arm7_9_common: trim forard declarations
Remove forward declarations by reordering command registration.
Diffstat (limited to 'src/xsvf')
-rw-r--r-- | src/xsvf/xsvf.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c index 719470ee..17af9ead 100644 --- a/src/xsvf/xsvf.c +++ b/src/xsvf/xsvf.c @@ -123,7 +123,6 @@ LSDR 1 TDI (0) #define XSTATE_MAX_PATH 12 -static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); static int xsvf_fd = 0; @@ -161,14 +160,6 @@ static tap_state_t xsvf_to_tap(int xsvf_state) -int xsvf_register_commands(struct command_context_s *cmd_ctx) -{ - register_command(cmd_ctx, NULL, "xsvf", handle_xsvf_command, - COMMAND_EXEC, "run xsvf <file> [virt2] [quiet]"); - - return ERROR_OK; -} - static int xsvf_read_buffer(int num_bits, int fd, uint8_t* buf) { int num_bytes; @@ -1059,6 +1050,14 @@ static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, cha return ERROR_OK; } +int xsvf_register_commands(struct command_context_s *cmd_ctx) +{ + register_command(cmd_ctx, NULL, "xsvf", + &handle_xsvf_command, COMMAND_EXEC, + "run xsvf <file> [virt2] [quiet]"); + + return ERROR_OK; +} #if 0 /* this comment style used to try and keep uncrustify from adding * at begin of line */ |