patricia stuff
This commit is contained in:
parent
5cefa1d6c8
commit
944e17ac4f
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue