server: remove useless declarations

Remove server command declarations, make handler routines static.
This commit is contained in:
Zachary T Welch
2009-11-09 21:22:48 -08:00
parent 8d6dcb9d39
commit 23d88e5774
4 changed files with 65 additions and 53 deletions

View File

@@ -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;
}