patricia stuff

This commit is contained in:
William Pitcock 2008-04-01 15:44:55 -05:00
parent 8e69bb4e90
commit f14bcab7bc
1 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,6 @@
#include "send.h" #include "send.h"
#include "irc_string.h" #include "irc_string.h"
#include "memory.h" #include "memory.h"
#include "patricia.h"
#define BAD_CONF_CLASS -1 #define BAD_CONF_CLASS -1
#define BAD_PING -2 #define BAD_PING -2
@ -59,7 +58,7 @@ make_class(void)
MaxUsers(tmp) = 1; MaxUsers(tmp) = 1;
MaxSendq(tmp) = DEFAULT_SENDQ; MaxSendq(tmp) = DEFAULT_SENDQ;
tmp->ip_limits = New_Patricia(PATRICIA_BITS); tmp->ip_limits = rb_new_patricia(PATRICIA_BITS);
return tmp; return tmp;
} }
@ -67,7 +66,7 @@ void
free_class(struct Class *tmp) free_class(struct Class *tmp)
{ {
if(tmp->ip_limits) if(tmp->ip_limits)
Destroy_Patricia(tmp->ip_limits, NULL); rb_destroy_patricia(tmp->ip_limits, NULL);
MyFree(tmp->class_name); MyFree(tmp->class_name);
MyFree(tmp); MyFree(tmp);