summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-11 17:34:41 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-11 17:34:41 +0000
commitf4a54d2f96562e7ba54b45e976b3de1ab8f204df (patch)
treeace7c21f608e2b726e09b134d1a02ed955afce7f /src
parenta7e6544569aff97f362030000b72330b4fa2fa48 (diff)
- 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
Diffstat (limited to 'src')
-rw-r--r--src/modules.c7
-rw-r--r--src/s_gline.c28
-rw-r--r--src/whowas.c18
3 files changed, 25 insertions, 28 deletions
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 = "<unknown>";
+static dlink_list mod_paths = { NULL, NULL, 0 };
+static dlink_list conf_modules = { NULL, NULL, 0 };
+static const char *unknown_ver = "<unknown>";
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
@@ -36,6 +36,15 @@ 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)
{
static unsigned int whowas_next = 0;
@@ -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;
-}