]> git.sur5r.net Git - openocd/commitdiff
telnet_service_t -> struct telnet_service
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 16:06:56 +0000 (08:06 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:08 +0000 (11:58 -0800)
Remove misleading typedef and redundant suffix from struct telnet_service.

src/server/telnet_server.c
src/server/telnet_server.h

index 6cb4746230334ed7623f951d89e4511f06b91da6..9c6115588f43bd4e696d3f3d3d16ffd03d3d6205 100644 (file)
@@ -134,7 +134,7 @@ void telnet_log_callback(void *priv, const char *file, unsigned line,
 int telnet_new_connection(connection_t *connection)
 {
        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;
 
        connection->priv = telnet_connection;
@@ -589,7 +589,7 @@ int telnet_set_prompt(connection_t *connection, char *prompt)
 
 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)
        {
index 8f0d24abfe4e5c10e191c391df6105bde7aceeb7..d6e92228266c620da9b4d27653f47c99660b4f23 100644 (file)
@@ -63,10 +63,10 @@ typedef struct telnet_connection_s
        int closed;
 } telnet_connection_t;
 
-typedef struct telnet_service_s
+struct telnet_service
 {
        char *banner;
-} telnet_service_t;
+};
 
 int telnet_init(char *banner);
 int telnet_register_commands(command_context_t *command_context);