]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/class.c
Argh, wrong replace caused by MS VS 2005 interface.
[irc/rqf/shadowircd.git] / src / class.c
index fa3f97e2924ab869a08797323685a15bb2c2de55..106d1468bf41ef4c7ee957c81e7b90bb3a4954f0 100644 (file)
@@ -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);
 
 }