summaryrefslogtreecommitdiff
path: root/src/server/tcl_server.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-09 21:22:48 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-09 21:39:46 -0800
commit23d88e57748bece953ddf1063017152243abc93a (patch)
tree557e931ffe80ce50b8a97e6bebac42e49e6955a8 /src/server/tcl_server.c
parent8d6dcb9d39f0f948ef44beff991337b830fc4567 (diff)
downloadopenocd+libswd-23d88e57748bece953ddf1063017152243abc93a.tar.gz
openocd+libswd-23d88e57748bece953ddf1063017152243abc93a.tar.bz2
openocd+libswd-23d88e57748bece953ddf1063017152243abc93a.tar.xz
openocd+libswd-23d88e57748bece953ddf1063017152243abc93a.zip
server: remove useless declarations
Remove server command declarations, make handler routines static.
Diffstat (limited to 'src/server/tcl_server.c')
-rw-r--r--src/server/tcl_server.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c
index 178d86ba..2e93e361 100644
--- a/src/server/tcl_server.c
+++ b/src/server/tcl_server.c
@@ -36,9 +36,6 @@ typedef struct tcl_connection_s {
static unsigned short tcl_port = 6666;
-/* commands */
-static int handle_tcl_port_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
-
/* handlers */
static int tcl_new_connection(connection_t *connection);
static int tcl_input(connection_t *connection);
@@ -173,14 +170,16 @@ int tcl_init(void)
return retval;
}
-int tcl_register_commands(command_context_t *cmd_ctx)
-{
- register_command(cmd_ctx, NULL, "tcl_port", handle_tcl_port_command, COMMAND_CONFIG, "port on which to listen for incoming TCL syntax");
- return ERROR_OK;
-}
-
static int handle_tcl_port_command(struct command_context_s *cmd_ctx,
char *cmd, char **args, int argc)
{
return server_port_command(cmd_ctx, cmd, args, argc, &tcl_port);
}
+
+int tcl_register_commands(command_context_t *cmd_ctx)
+{
+ register_command(cmd_ctx, NULL, "tcl_port",
+ handle_tcl_port_command, COMMAND_CONFIG,
+ "port on which to listen for incoming TCL syntax");
+ return ERROR_OK;
+}