From 23d88e57748bece953ddf1063017152243abc93a Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Mon, 9 Nov 2009 21:22:48 -0800 Subject: server: remove useless declarations Remove server command declarations, make handler routines static. --- src/server/tcl_server.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/server/tcl_server.c') 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; +} -- cgit v1.2.3