diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 13:25:47 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 13:25:47 -0800 |
commit | 98723c4ecdbe06f90c66f3abec27b792c3b38e34 (patch) | |
tree | c6ea2a1627e8f7109e3aa0589cd625ac0c740aa7 /src/server/telnet_server.c | |
parent | d16968e24f5d9e436ae4e136cd27652c4c948203 (diff) |
command_context_t -> struct command_context
Remove misleading typedef and redundant suffix from struct command_context.
Diffstat (limited to 'src/server/telnet_server.c')
-rw-r--r-- | src/server/telnet_server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index 93028b14..46d438e0 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -94,7 +94,7 @@ int telnet_outputline(struct connection *connection, const char *line) return ERROR_OK; } -int telnet_output(struct command_context_s *cmd_ctx, const char* line) +int telnet_output(struct command_context *cmd_ctx, const char* line) { struct connection *connection = cmd_ctx->output_handler_priv; @@ -198,7 +198,7 @@ int telnet_input(struct connection *connection) char buffer[TELNET_BUFFER_SIZE]; char *buf_p; struct telnet_connection *t_con = connection->priv; - command_context_t *command_context = connection->cmd_ctx; + struct command_context *command_context = connection->cmd_ctx; bytes_read = read_socket(connection->fd, buffer, TELNET_BUFFER_SIZE); @@ -616,7 +616,7 @@ COMMAND_HANDLER(handle_exit_command) return ERROR_COMMAND_CLOSE_CONNECTION; } -int telnet_register_commands(command_context_t *command_context) +int telnet_register_commands(struct command_context *command_context) { register_command(command_context, NULL, "exit", &handle_exit_command, COMMAND_EXEC, |