From 8775a0f6638d966b6ef135b488da6efb954e2573 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 13 Nov 2009 08:07:00 -0800 Subject: service_t -> struct service Remove misleading typedef and redundant suffix from struct service. --- src/server/server.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/server.h') diff --git a/src/server/server.h b/src/server/server.h index abb501d4..2bfedb49 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -43,7 +43,7 @@ typedef struct connection_s int fd; struct sockaddr_in sin; command_context_t *cmd_ctx; - struct service_s *service; + struct service *service; int input_pending; void *priv; struct connection_s *next; @@ -53,7 +53,7 @@ typedef int (*new_connection_handler_t)(connection_t *connection); typedef int (*input_handler_t)(connection_t *connection); typedef int (*connection_closed_handler_t)(connection_t *connection); -typedef struct service_s +struct service { char *name; enum connection_type type; @@ -66,8 +66,8 @@ typedef struct service_s input_handler_t input; connection_closed_handler_t connection_closed; void *priv; - struct service_s *next; -} service_t; + struct service *next; +}; int add_service(char *name, enum connection_type type, unsigned short port, int max_connections, new_connection_handler_t new_connection_handler, -- cgit v1.2.3-18-g5258