From 5475a9321f6e0379fb2c40d20258b2550f674a8e Mon Sep 17 00:00:00 2001 From: Valery V Yatsko Date: Sat, 28 Jun 2008 11:54:51 +0400 Subject: [PATCH] channel_heap,ban_heap,topic_heap,member_heap declared statically in channel.c instead of ircd.{c,h} --- include/ircd.h | 5 ----- src/channel.c | 5 +++++ src/ircd.c | 4 ---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/include/ircd.h b/include/ircd.h index ec8192b..c600f5c 100644 --- a/include/ircd.h +++ b/include/ircd.h @@ -99,11 +99,6 @@ extern rb_dlink_list local_oper_list; extern rb_dlink_list oper_list; extern rb_dlink_list dead_list; -extern rb_bh *channel_heap; -extern rb_bh *ban_heap; -extern rb_bh *topic_heap; -extern rb_bh *member_heap; - extern int testing_conf; extern struct ev_entry *check_splitmode_ev; diff --git a/src/channel.c b/src/channel.c index 702038e..36b847f 100644 --- a/src/channel.c +++ b/src/channel.c @@ -41,6 +41,11 @@ #include "s_newconf.h" #include "logger.h" +static rb_bh *channel_heap; +static rb_bh *ban_heap; +static rb_bh *topic_heap; +static rb_bh *member_heap; + static int channel_capabs[] = { CAP_EX, CAP_IE, CAP_SERVICE, CAP_TS6 diff --git a/src/ircd.c b/src/ircd.c index 217d011..7cc2fe0 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -121,10 +121,6 @@ int zlib_ok = 1; int testing_conf = 0; struct config_channel_entry ConfigChannel; -rb_bh *channel_heap; -rb_bh *ban_heap; -rb_bh *topic_heap; -rb_bh *member_heap; rb_bh *client_heap = NULL; rb_bh *lclient_heap = NULL;