]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/class.c
Splitted open_logfiles(); into open_logfiles(); and close_logfiles();, use the second...
[irc/rqf/shadowircd.git] / src / class.c
index 878e694d6cea674e84edd5ce135e5de4e33d1f8e..f3a60e8f01218b7229910dba9ab4c22356ac5d85 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,7 +36,6 @@
 #include "s_newconf.h"
 #include "send.h"
 #include "irc_string.h"
-#include "memory.h"
 
 #define BAD_CONF_CLASS          -1
 #define BAD_PING                -2
@@ -51,7 +49,7 @@ make_class(void)
 {
        struct Class *tmp;
 
-       tmp = (struct Class *) MyMalloc(sizeof(struct Class));
+       tmp = rb_malloc(sizeof(struct Class));
 
        ConFreq(tmp) = DEFAULT_CONNECTFREQUENCY;
        PingFreq(tmp) = DEFAULT_PINGFREQUENCY;
@@ -68,8 +66,8 @@ free_class(struct Class *tmp)
        if(tmp->ip_limits)
                rb_destroy_patricia(tmp->ip_limits, NULL);
 
-       MyFree(tmp->class_name);
-       MyFree(tmp);
+       rb_free(tmp->class_name);
+       rb_free(tmp);
 
 }
 
@@ -274,7 +272,7 @@ void
 initclass()
 {
        default_class = make_class();
-       DupString(ClassName(default_class), "default");
+       ClassName(default_class) = rb_strdup("default");
 }
 
 /*