summaryrefslogtreecommitdiff
path: root/src/svf
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 13:25:47 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 13:25:47 -0800
commit98723c4ecdbe06f90c66f3abec27b792c3b38e34 (patch)
treec6ea2a1627e8f7109e3aa0589cd625ac0c740aa7 /src/svf
parentd16968e24f5d9e436ae4e136cd27652c4c948203 (diff)
downloadopenocd_libswd-98723c4ecdbe06f90c66f3abec27b792c3b38e34.tar.gz
openocd_libswd-98723c4ecdbe06f90c66f3abec27b792c3b38e34.tar.bz2
openocd_libswd-98723c4ecdbe06f90c66f3abec27b792c3b38e34.tar.xz
openocd_libswd-98723c4ecdbe06f90c66f3abec27b792c3b38e34.zip
command_context_t -> struct command_context
Remove misleading typedef and redundant suffix from struct command_context.
Diffstat (limited to 'src/svf')
-rw-r--r--src/svf/svf.c6
-rw-r--r--src/svf/svf.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/svf/svf.c b/src/svf/svf.c
index 7e689fa3..814f3f22 100644
--- a/src/svf/svf.c
+++ b/src/svf/svf.c
@@ -209,7 +209,7 @@ static int svf_check_tdo_para_index = 0;
static int svf_read_command_from_file(int fd);
static int svf_check_tdo(void);
static int svf_add_check_para(uint8_t enabled, int buffer_offset, int bit_len);
-static int svf_run_command(struct command_context_s *cmd_ctx, char *cmd_str);
+static int svf_run_command(struct command_context *cmd_ctx, char *cmd_str);
static int svf_fd = 0;
static char *svf_command_buffer = NULL;
@@ -750,7 +750,7 @@ static int svf_execute_tap(void)
return ERROR_OK;
}
-static int svf_run_command(struct command_context_s *cmd_ctx, char *cmd_str)
+static int svf_run_command(struct command_context *cmd_ctx, char *cmd_str)
{
char *argus[256], command;
int num_of_argu = 0, i;
@@ -1460,7 +1460,7 @@ static int svf_run_command(struct command_context_s *cmd_ctx, char *cmd_str)
return ERROR_OK;
}
-int svf_register_commands(struct command_context_s *cmd_ctx)
+int svf_register_commands(struct command_context *cmd_ctx)
{
register_command(cmd_ctx, NULL, "svf",
&handle_svf_command, COMMAND_EXEC,
diff --git a/src/svf/svf.h b/src/svf/svf.h
index 329fea93..20a35550 100644
--- a/src/svf/svf.h
+++ b/src/svf/svf.h
@@ -22,7 +22,7 @@
#include "command.h"
-int svf_register_commands(struct command_context_s *cmd_ctx);
+int svf_register_commands(struct command_context *cmd_ctx);
/**
* svf_add_statemove() moves from the current state to @a goal_state.