diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:06:56 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:08 -0800 |
commit | e01a0be57655683c58e9dd5e66ee30fe3049e8d9 (patch) | |
tree | 1f90d7c4468d60e42599f3ce36e5a9c83637b000 /src | |
parent | 45a165a432eae2eb74b97ec5196736a352923a12 (diff) | |
download | openocd+libswd-e01a0be57655683c58e9dd5e66ee30fe3049e8d9.tar.gz openocd+libswd-e01a0be57655683c58e9dd5e66ee30fe3049e8d9.tar.bz2 openocd+libswd-e01a0be57655683c58e9dd5e66ee30fe3049e8d9.tar.xz openocd+libswd-e01a0be57655683c58e9dd5e66ee30fe3049e8d9.zip |
telnet_service_t -> struct telnet_service
Remove misleading typedef and redundant suffix from struct telnet_service.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/telnet_server.c | 4 | ||||
-rw-r--r-- | src/server/telnet_server.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index 6cb47462..9c611558 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -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) { diff --git a/src/server/telnet_server.h b/src/server/telnet_server.h index 8f0d24ab..d6e92228 100644 --- a/src/server/telnet_server.h +++ b/src/server/telnet_server.h @@ -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); |