X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/8e69bb4e903f428b14e2950cce9be39dc8ddd12c..90a3c35b295b07ebe3793bf5d3b882c3c1a5dc7c:/src/class.c?ds=sidebyside diff --git a/src/class.c b/src/class.c index fa3f97e..106d146 100644 --- a/src/class.c +++ b/src/class.c @@ -27,7 +27,6 @@ #include "stdinc.h" #include "config.h" -#include "tools.h" #include "class.h" #include "client.h" #include "common.h" @@ -37,8 +36,6 @@ #include "s_newconf.h" #include "send.h" #include "irc_string.h" -#include "memory.h" -#include "patricia.h" #define BAD_CONF_CLASS -1 #define BAD_PING -2 @@ -59,7 +56,7 @@ make_class(void) MaxUsers(tmp) = 1; MaxSendq(tmp) = DEFAULT_SENDQ; - tmp->ip_limits = New_Patricia(PATRICIA_BITS); + tmp->ip_limits = rb_new_patricia(PATRICIA_BITS); return tmp; } @@ -67,10 +64,10 @@ void free_class(struct Class *tmp) { if(tmp->ip_limits) - Destroy_Patricia(tmp->ip_limits, NULL); + rb_destroy_patricia(tmp->ip_limits, NULL); - MyFree(tmp->class_name); - MyFree(tmp); + rb_free(tmp->class_name); + rb_free(tmp); }