aboutsummaryrefslogtreecommitdiff
path: root/src/server/tcl_server.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-09 23:56:52 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 10:51:45 -0800
commitcfc4d5c6b7b6f8f82dc5bbf3ee661c179814666e (patch)
treef129c414d90f81a2caf6054ab7bbcd1306ac1f26 /src/server/tcl_server.c
parentddb6138ed428f666064d26bb08036de3afe44bc8 (diff)
downloadriscv-openocd-cfc4d5c6b7b6f8f82dc5bbf3ee661c179814666e.zip
riscv-openocd-cfc4d5c6b7b6f8f82dc5bbf3ee661c179814666e.tar.gz
riscv-openocd-cfc4d5c6b7b6f8f82dc5bbf3ee661c179814666e.tar.bz2
use COMMAND_HANDLER macro to define all commands
Diffstat (limited to 'src/server/tcl_server.c')
-rw-r--r--src/server/tcl_server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c
index 2e93e36..3410ca9 100644
--- a/src/server/tcl_server.c
+++ b/src/server/tcl_server.c
@@ -170,8 +170,7 @@ int tcl_init(void)
return retval;
}
-static int handle_tcl_port_command(struct command_context_s *cmd_ctx,
- char *cmd, char **args, int argc)
+COMMAND_HANDLER(handle_tcl_port_command)
{
return server_port_command(cmd_ctx, cmd, args, argc, &tcl_port);
}