X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/af81d5a0b09446188fd6f9c292b51519f2c1cedd..90a3c35b295b07ebe3793bf5d3b882c3c1a5dc7c:/src/s_serv.c?ds=sidebyside diff --git a/src/s_serv.c b/src/s_serv.c index 47f67fd..72e7925 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -30,12 +30,10 @@ #include #endif -#include "tools.h" #include "s_serv.h" #include "class.h" #include "client.h" #include "common.h" -#include "event.h" #include "hash.h" #include "irc_string.h" #include "sprintf_irc.h" @@ -44,7 +42,6 @@ #include "numeric.h" #include "packet.h" #include "res.h" -#include "commio.h" #include "s_conf.h" #include "s_newconf.h" #include "s_log.h" @@ -53,7 +50,6 @@ #include "scache.h" #include "send.h" #include "client.h" -#include "memory.h" #include "channel.h" /* chcap_usage_counts stuff... */ #include "hook.h" #include "msg.h" @@ -210,7 +206,7 @@ collect_zipstats(void *unused) rb_dlink_node *ptr; struct Client *target_p; - DLINK_FOREACH(ptr, serv_list.head) + RB_DLINK_FOREACH(ptr, serv_list.head) { target_p = ptr->data; if(IsCapable(target_p, CAP_ZIP)) @@ -301,7 +297,7 @@ hunt_server(struct Client *client_p, struct Client *source_p, { target_p = NULL; - DLINK_FOREACH(ptr, global_client_list.head) + RB_DLINK_FOREACH(ptr, global_client_list.head) { if(match(new, ((struct Client *) (ptr->data))->name)) { @@ -358,7 +354,7 @@ try_connections(void *unused) int confrq = 0; time_t next = 0; - DLINK_FOREACH(ptr, server_conf_list.head) + RB_DLINK_FOREACH(ptr, server_conf_list.head) { tmp_p = ptr->data; @@ -453,7 +449,7 @@ check_server(const char *name, struct Client *client_p) if(strlen(name) > HOSTLEN) return -4; - DLINK_FOREACH(ptr, server_conf_list.head) + RB_DLINK_FOREACH(ptr, server_conf_list.head) { tmp_p = ptr->data; @@ -566,7 +562,7 @@ burst_modes_TS5(struct Client *client_p, char *chname, rb_dlink_list *list, char mp = mbuf; pp = pbuf; - DLINK_FOREACH(ptr, list->head) + RB_DLINK_FOREACH(ptr, list->head) { banptr = ptr->data; tlen = strlen(banptr->banstr) + 3; @@ -617,7 +613,7 @@ burst_modes_TS6(struct Client *client_p, struct Channel *chptr, me.id, (long) chptr->channelts, chptr->chname, flag); t = buf + mlen; - DLINK_FOREACH(ptr, list->head) + RB_DLINK_FOREACH(ptr, list->head) { banptr = ptr->data; @@ -677,7 +673,7 @@ burst_TS5(struct Client *client_p) hclientinfo.client = hchaninfo.client = client_p; - DLINK_FOREACH(ptr, global_client_list.head) + RB_DLINK_FOREACH(ptr, global_client_list.head) { target_p = ptr->data; @@ -712,7 +708,7 @@ burst_TS5(struct Client *client_p) call_hook(h_burst_client, &hclientinfo); } - DLINK_FOREACH(ptr, global_channel_list.head) + RB_DLINK_FOREACH(ptr, global_channel_list.head) { chptr = ptr->data; @@ -725,7 +721,7 @@ burst_TS5(struct Client *client_p) t = buf + mlen; - DLINK_FOREACH(uptr, chptr->members.head) + RB_DLINK_FOREACH(uptr, chptr->members.head) { msptr = uptr->data; @@ -809,7 +805,7 @@ burst_TS6(struct Client *client_p) hclientinfo.client = hchaninfo.client = client_p; - DLINK_FOREACH(ptr, global_client_list.head) + RB_DLINK_FOREACH(ptr, global_client_list.head) { target_p = ptr->data; @@ -870,7 +866,7 @@ burst_TS6(struct Client *client_p) call_hook(h_burst_client, &hclientinfo); } - DLINK_FOREACH(ptr, global_channel_list.head) + RB_DLINK_FOREACH(ptr, global_channel_list.head) { chptr = ptr->data; @@ -883,7 +879,7 @@ burst_TS6(struct Client *client_p) t = buf + mlen; - DLINK_FOREACH(uptr, chptr->members.head) + RB_DLINK_FOREACH(uptr, chptr->members.head) { msptr = uptr->data; @@ -1020,7 +1016,7 @@ server_estab(struct Client *client_p) if(client_p->localClient->passwd) { memset(client_p->localClient->passwd, 0, strlen(client_p->localClient->passwd)); - MyFree(client_p->localClient->passwd); + rb_free(client_p->localClient->passwd); client_p->localClient->passwd = NULL; } @@ -1112,7 +1108,7 @@ server_estab(struct Client *client_p) if(client_p->localClient->fullcaps) { DupString(client_p->serv->fullcaps, client_p->localClient->fullcaps); - MyFree(client_p->localClient->fullcaps); + rb_free(client_p->localClient->fullcaps); client_p->localClient->fullcaps = NULL; } @@ -1154,7 +1150,7 @@ server_estab(struct Client *client_p) ** need to send different names to different servers ** (domain name matching) Send new server to other servers. */ - DLINK_FOREACH(ptr, serv_list.head) + RB_DLINK_FOREACH(ptr, serv_list.head) { target_p = ptr->data; @@ -1203,7 +1199,7 @@ server_estab(struct Client *client_p) ** see previous *WARNING*!!! (Also, original inpath ** is destroyed...) */ - DLINK_FOREACH(ptr, global_serv_list.head) + RB_DLINK_FOREACH(ptr, global_serv_list.head) { target_p = ptr->data;