From f4a54d2f96562e7ba54b45e976b3de1ab8f204df Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 11 May 2013 17:34:41 +0000 Subject: - Mostly style cleanups & whitespace changes git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@1996 82007160-df01-0410-b94d-b575c5fd34c7 --- src/modules.c | 7 +++---- src/s_gline.c | 28 +++++++++++++--------------- src/whowas.c | 18 +++++++++--------- 3 files changed, 25 insertions(+), 28 deletions(-) (limited to 'src') diff --git a/src/modules.c b/src/modules.c index 23a5a0f..e8dc695 100644 --- a/src/modules.c +++ b/src/modules.c @@ -41,8 +41,10 @@ dlink_list modules_list = { NULL, NULL, 0 }; -static const char *unknown_ver = ""; +static dlink_list mod_paths = { NULL, NULL, 0 }; +static dlink_list conf_modules = { NULL, NULL, 0 }; +static const char *unknown_ver = ""; static const char *core_module_table[] = { "m_die.la", @@ -61,9 +63,6 @@ static const char *core_module_table[] = NULL }; -static dlink_list mod_paths = { NULL, NULL, 0 }; -static dlink_list conf_modules = { NULL, NULL, 0 }; - int modules_valid_suffix(const char *name) { diff --git a/src/s_gline.c b/src/s_gline.c index ef30c87..f5f285e 100644 --- a/src/s_gline.c +++ b/src/s_gline.c @@ -39,8 +39,6 @@ dlink_list pending_glines[GLINE_PENDING_ADD_TYPE + 1] = { { NULL, NULL, 0 }, { NULL, NULL, 0 } }; -static void expire_pending_glines(struct gline_pending *); - struct MaskItem * find_is_glined(const char *host, const char *user) @@ -67,19 +65,6 @@ find_is_glined(const char *host, const char *user) return conf; } -/* cleanup_glines() - * - * inputs - NONE - * output - NONE - * side effects - expire gline lists - * This is an event started off in ircd.c - */ -void -cleanup_glines(void *unused) -{ - expire_pending_glines(unused); -} - /* expire_pending_glines() * * inputs - NONE @@ -110,3 +95,16 @@ expire_pending_glines(struct gline_pending *in) } } } + +/* cleanup_glines() + * + * inputs - NONE + * output - NONE + * side effects - expire gline lists + * This is an event started off in ircd.c + */ +void +cleanup_glines(void *unused) +{ + expire_pending_glines(unused); +} diff --git a/src/whowas.c b/src/whowas.c index 0a19446..2df8933 100644 --- a/src/whowas.c +++ b/src/whowas.c @@ -35,6 +35,15 @@ static struct Whowas WHOWAS[NICKNAMEHISTORYLENGTH]; dlink_list WHOWASHASH[HASHSIZE]; +void +whowas_init(void) +{ + unsigned int idx; + + for (idx = 0; idx < NICKNAMEHISTORYLENGTH; ++idx) + WHOWAS[idx].hashv = -1; +} + void add_history(struct Client *client_p, const int online) { @@ -131,12 +140,3 @@ count_whowas_memory(unsigned int *wwu, uint64_t *wwum) *wwu = u; *wwum = um; } - -void -whowas_init(void) -{ - unsigned int idx; - - for (idx = 0; idx < NICKNAMEHISTORYLENGTH; ++idx) - WHOWAS[idx].hashv = -1; -} -- cgit