From 85368a13d3073c77398f121c5f93be3da39d8582 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 20 Mar 2016 01:44:00 -0500 Subject: [PATCH] ircd: rewrite SOCKET_ERROR as I_SOCKET_ERROR --- include/s_conf.h | 2 +- ircd/s_conf.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/s_conf.h b/include/s_conf.h index 4f78fbdd0..49c713f42 100644 --- a/include/s_conf.h +++ b/include/s_conf.h @@ -393,7 +393,7 @@ extern char conffilebuf[IRCD_BUFSIZE + 1]; extern int lineno; #define NOT_AUTHORISED (-1) -#define SOCKET_ERROR (-2) +#define I_SOCKET_ERROR (-2) #define I_LINE_FULL (-3) #define BANNED_CLIENT (-4) #define TOO_MANY_LOCAL (-6) diff --git a/ircd/s_conf.c b/ircd/s_conf.c index 78bf23d87..66fa637d9 100644 --- a/ircd/s_conf.c +++ b/ircd/s_conf.c @@ -169,7 +169,7 @@ free_conf(struct ConfItem *aconf) * inputs - pointer to client * output - 0 = Success * NOT_AUTHORISED (-1) = Access denied (no I line match) - * SOCKET_ERROR (-2) = Bad socket. + * I_SOCKET_ERROR (-2) = Bad socket. * I_LINE_FULL (-3) = I-line is full * TOO_MANY (-4) = Too many connections from hostname * BANNED_CLIENT (-5) = K-lined @@ -190,7 +190,7 @@ check_client(struct Client *client_p, struct Client *source_p, const char *usern switch (i) { - case SOCKET_ERROR: + case I_SOCKET_ERROR: exit_client(client_p, source_p, &me, "Socket Error"); break;