From 7018b86a127ef4549a951369db0a797cb74ea15b Mon Sep 17 00:00:00 2001
From: Jilles Tjoelker <jilles@stack.nl>
Date: Tue, 1 Apr 2008 23:11:11 +0200
Subject: [PATCH] More changes for libratbox.

---
 include/s_newconf.h | 2 +-
 modules/m_accept.c  | 4 ++--
 modules/m_gline.c   | 2 +-
 modules/m_invite.c  | 4 ++--
 modules/m_monitor.c | 6 +++---
 modules/m_resv.c    | 2 +-
 src/s_newconf.c     | 2 +-
 7 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/include/s_newconf.h b/include/s_newconf.h
index 66b1da48..65bbcac7 100644
--- a/include/s_newconf.h
+++ b/include/s_newconf.h
@@ -54,7 +54,7 @@ extern rb_dlink_list resv_conf_list;
 extern rb_dlink_list nd_list;
 extern rb_dlink_list tgchange_list;
 
-struct _patricia_tree_t *tgchange_tree;
+struct _rb_patricia_tree_t *tgchange_tree;
 
 extern void init_s_newconf(void);
 extern void clear_s_newconf(void);
diff --git a/modules/m_accept.c b/modules/m_accept.c
index 8b86a4c9..7fbf584a 100644
--- a/modules/m_accept.c
+++ b/modules/m_accept.c
@@ -208,8 +208,8 @@ build_nicklist(struct Client *source_p, char *addbuf, char *delbuf, const char *
 static void
 add_accept(struct Client *source_p, struct Client *target_p)
 {
-	dlinkAddAlloc(target_p, &source_p->localClient->allow_list);
-	dlinkAddAlloc(source_p, &target_p->on_allow_list);
+	rb_dlinkAddAlloc(target_p, &source_p->localClient->allow_list);
+	rb_dlinkAddAlloc(source_p, &target_p->on_allow_list);
 }
 
 
diff --git a/modules/m_gline.c b/modules/m_gline.c
index 9908c57e..ca418a88 100644
--- a/modules/m_gline.c
+++ b/modules/m_gline.c
@@ -681,7 +681,7 @@ majority_gline(struct Client *source_p, const char *user,
 	pending->last_gline_time = CurrentTime;
 	pending->time_request1 = CurrentTime;
 
-	dlinkAddAlloc(pending, &pending_glines);
+	rb_dlinkAddAlloc(pending, &pending_glines);
 
 	return NO;
 }
diff --git a/modules/m_invite.c b/modules/m_invite.c
index 799515e2..35e392ff 100644
--- a/modules/m_invite.c
+++ b/modules/m_invite.c
@@ -214,10 +214,10 @@ add_invite(struct Channel *chptr, struct Client *who)
 	}
 
 	/* add user to channel invite list */
-	dlinkAddAlloc(who, &chptr->invites);
+	rb_dlinkAddAlloc(who, &chptr->invites);
 
 	/* add channel to user invite list */
-	dlinkAddAlloc(chptr, &who->user->invited);
+	rb_dlinkAddAlloc(chptr, &who->user->invited);
 }
 
 
diff --git a/modules/m_monitor.c b/modules/m_monitor.c
index ef0f6bac..eb0dafa9 100644
--- a/modules/m_monitor.c
+++ b/modules/m_monitor.c
@@ -103,11 +103,11 @@ add_monitor(struct Client *client_p, const char *nicks)
 		monptr = find_monitor(name, 1);
 
 		/* already monitoring this nick */
-		if(dlinkFind(client_p, &monptr->users))
+		if(rb_dlinkFind(client_p, &monptr->users))
 			continue;
 
-		dlinkAddAlloc(client_p, &monptr->users);
-		dlinkAddAlloc(monptr, &client_p->localClient->monitor_list);
+		rb_dlinkAddAlloc(client_p, &monptr->users);
+		rb_dlinkAddAlloc(monptr, &client_p->localClient->monitor_list);
 
 		if((target_p = find_named_person(name)) != NULL)
 		{
diff --git a/modules/m_resv.c b/modules/m_resv.c
index d1e11fcc..c19d774e 100644
--- a/modules/m_resv.c
+++ b/modules/m_resv.c
@@ -284,7 +284,7 @@ parse_resv(struct Client *source_p, const char *name,
 		aconf->port = 0;
 		DupString(aconf->name, name);
 		DupString(aconf->passwd, reason);
-		dlinkAddAlloc(aconf, &resv_conf_list);
+		rb_dlinkAddAlloc(aconf, &resv_conf_list);
 
 		if(temp_time > 0)
 		{
diff --git a/src/s_newconf.c b/src/s_newconf.c
index b7d87b5b..3c828b27 100644
--- a/src/s_newconf.c
+++ b/src/s_newconf.c
@@ -60,7 +60,7 @@ rb_dlink_list resv_conf_list;	/* nicks only! */
 rb_dlink_list nd_list;		/* nick delay */
 rb_dlink_list tgchange_list;
 
-patricia_tree_t *tgchange_tree;
+rb_patricia_tree_t *tgchange_tree;
 
 static BlockHeap *nd_heap = NULL;