telnet_service_t -> struct telnet_service

Remove misleading typedef and redundant suffix from struct telnet_service.
This commit is contained in:
Zachary T Welch 2009-11-13 08:06:56 -08:00
parent 45a165a432
commit e01a0be576
2 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@ void telnet_log_callback(void *priv, const char *file, unsigned line,
int telnet_new_connection(connection_t *connection) int telnet_new_connection(connection_t *connection)
{ {
telnet_connection_t *telnet_connection = malloc(sizeof(telnet_connection_t)); telnet_connection_t *telnet_connection = malloc(sizeof(telnet_connection_t));
telnet_service_t *telnet_service = connection->service->priv; struct telnet_service *telnet_service = connection->service->priv;
int i; int i;
connection->priv = telnet_connection; connection->priv = telnet_connection;
@ -589,7 +589,7 @@ int telnet_set_prompt(connection_t *connection, char *prompt)
int telnet_init(char *banner) int telnet_init(char *banner)
{ {
telnet_service_t *telnet_service = malloc(sizeof(telnet_service_t)); struct telnet_service *telnet_service = malloc(sizeof(struct telnet_service));
if (telnet_port == 0) if (telnet_port == 0)
{ {

View File

@ -63,10 +63,10 @@ typedef struct telnet_connection_s
int closed; int closed;
} telnet_connection_t; } telnet_connection_t;
typedef struct telnet_service_s struct telnet_service
{ {
char *banner; char *banner;
} telnet_service_t; };
int telnet_init(char *banner); int telnet_init(char *banner);
int telnet_register_commands(command_context_t *command_context); int telnet_register_commands(command_context_t *command_context);