]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/ircd.c
dlink -> rb_dlink
[irc/rqf/shadowircd.git] / src / ircd.c
index 40993b1baf4e546282a5ad22f96f27d172bc1a4f..7c57228d435daefeaa7fd6cf111d6c69365c5b92 100644 (file)
@@ -73,6 +73,8 @@
 #include "patchlevel.h"
 #include "serno.h"
 
+#include "ratbox_lib.h"
+
 /*
  * Try and find the correct name to use with getrlimit() for setting the max.
  * number of files allowed to be open by this process.
@@ -298,7 +300,7 @@ charybdis_io_loop(void)
                        eventRun();
 
 
-               comm_select(250);
+               rb_select(250);
        }
 }
 
@@ -380,7 +382,7 @@ write_pidfile(const char *filename)
        {
                unsigned int pid = (unsigned int) getpid();
 
-               ircsnprintf(buff, sizeof(buff), "%u\n", pid);
+               rb_snprintf(buff, sizeof(buff), "%u\n", pid);
                if((fputs(buff, fb) == -1))
                {
                        ilog(L_MAIN, "Error writing %u to pid file %s (%s)",
@@ -495,7 +497,7 @@ main(int argc, char *argv[])
        memset(&local_oper_list, 0, sizeof(local_oper_list));
        memset(&oper_list, 0, sizeof(oper_list));
 
-       dlinkAddTail(&me, &me.node, &global_client_list);
+       rb_dlinkAddTail(&me, &me.node, &global_client_list);
 
        memset((void *) &Count, 0, sizeof(Count));
        memset((void *) &ServerInfo, 0, sizeof(ServerInfo));
@@ -565,7 +567,7 @@ main(int argc, char *argv[])
        fdlist_init();
        if(!server_state_foreground)
        {
-               comm_close_all();
+               rb_close_all();
        }
 
        init_main_logfile();
@@ -647,7 +649,7 @@ main(int argc, char *argv[])
        add_to_id_hash(me.id, &me);
        me.serv->nameinfo = scache_connect(me.name, me.info, 0);
 
-       dlinkAddAlloc(&me, &global_serv_list);
+       rb_dlinkAddAlloc(&me, &global_serv_list);
 
        construct_umodebuf();
 
@@ -671,7 +673,7 @@ main(int argc, char *argv[])
        eventAddIsh("collect_zipstats", collect_zipstats, NULL, ZIPSTATS_TIME);
 
        /* Setup the timeout check. I'll shift it later :)  -- adrian */
-       eventAddIsh("comm_checktimeouts", comm_checktimeouts, NULL, 1);
+       eventAddIsh("rb_checktimeouts", rb_checktimeouts, NULL, 1);
 
        eventAdd("check_rehash", check_rehash, NULL, 1);