diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:10:43 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:08 -0800 |
commit | 38d826cec18902f719439903838ebb612575d05d (patch) | |
tree | 1d469c7362f9554c293e73cf88caba8e4d39bfc1 /src/server/server.c | |
parent | f7cd2aa0ef2939f7d3df5f4a86f5e777a27dbd37 (diff) |
connection_t -> struct connection
Remove misleading typedef and redundant suffix from struct connection.
Diffstat (limited to 'src/server/server.c')
-rw-r--r-- | src/server/server.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/server.c b/src/server/server.c index 59ed1a5c..5614ef98 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -48,11 +48,11 @@ int server_use_pipes = 0; int add_connection(struct service *service, command_context_t *cmd_ctx) { socklen_t address_size; - connection_t *c, **p; + struct connection *c, **p; int retval; int flag = 1; - c = malloc(sizeof(connection_t)); + c = malloc(sizeof(struct connection)); c->fd = -1; memset(&c->sin, 0, sizeof(c->sin)); c->cmd_ctx = copy_command_context(cmd_ctx); @@ -109,10 +109,10 @@ int add_connection(struct service *service, command_context_t *cmd_ctx) return ERROR_OK; } -int remove_connection(struct service *service, connection_t *connection) +int remove_connection(struct service *service, struct connection *connection) { - connection_t **p = &service->connections; - connection_t *c; + struct connection **p = &service->connections; + struct connection *c; /* find connection */ while ((c = *p)) @@ -329,7 +329,7 @@ int server_loop(command_context_t *command_context) if (service->connections) { - connection_t *c; + struct connection *c; for (c = service->connections; c; c = c->next) { @@ -423,7 +423,7 @@ int server_loop(command_context_t *command_context) /* handle activity on connections */ if (service->connections) { - connection_t *c; + struct connection *c; for (c = service->connections; c;) { @@ -431,7 +431,7 @@ int server_loop(command_context_t *command_context) { if ((retval = service->input(c)) != ERROR_OK) { - connection_t *next = c->next; + struct connection *next = c->next; if (service->type == CONNECTION_PIPE) { /* if connection uses a pipe then shutdown openocd on error */ |