service_t -> struct service

Remove misleading typedef and redundant suffix from struct service.
This commit is contained in:
Zachary T Welch
2009-11-13 08:07:00 -08:00
parent e01a0be576
commit 8775a0f663
2 changed files with 14 additions and 14 deletions

View File

@@ -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,