Change over some dlink functions.

This commit is contained in:
Jilles Tjoelker 2008-04-01 22:54:08 +02:00
parent 944e17ac4f
commit 555ac41f14
10 changed files with 19 additions and 19 deletions

View file

@ -845,8 +845,8 @@ change_local_nick(struct Client *client_p, struct Client *source_p,
{
target_p = ptr->data;
dlinkFindDestroy(source_p, &target_p->localClient->allow_list);
dlinkDestroy(ptr, &source_p->on_allow_list);
rb_dlinkFindDestroy(source_p, &target_p->localClient->allow_list);
rb_dlinkDestroy(ptr, &source_p->on_allow_list);
}
/* fd_desc is long enough */

View file

@ -95,8 +95,8 @@ m_accept(struct Client *client_p, struct Client *source_p, int parc, const char
continue;
}
dlinkFindDestroy(target_p, &source_p->localClient->allow_list);
dlinkFindDestroy(source_p, &target_p->on_allow_list);
rb_dlinkFindDestroy(target_p, &source_p->localClient->allow_list);
rb_dlinkFindDestroy(source_p, &target_p->on_allow_list);
}
/* get the number of accepts they have */

View file

@ -460,7 +460,7 @@ remove_temp_dline(struct ConfItem *aconf)
{
if (aconf == ptr->data)
{
dlinkDestroy(ptr, &temp_dlines[i]);
rb_dlinkDestroy(ptr, &temp_dlines[i]);
delete_one_address_conf(aconf->host, aconf);
return YES;
}

View file

@ -722,7 +722,7 @@ remove_temp_gline(const char *user, const char *host)
(struct sockaddr *)&caddr, bits))
continue;
dlinkDestroy(ptr, &glines);
rb_dlinkDestroy(ptr, &glines);
remove_reject_mask(aconf->user, aconf->host);
delete_one_address_conf(aconf->host, aconf);
return YES;

View file

@ -931,7 +931,7 @@ remove_temp_kline(struct Client *source_p, struct ConfItem *aconf)
ilog(L_KLINE, "UK %s %s %s",
get_oper_name(source_p),
aconf->user, aconf->host);
dlinkDestroy(ptr, &temp_klines[i]);
rb_dlinkDestroy(ptr, &temp_klines[i]);
remove_reject_mask(aconf->user, aconf->host);
delete_one_address_conf(aconf->host, aconf);
return YES;

View file

@ -281,7 +281,7 @@ static void safelist_client_release(struct Client *client_p)
{
s_assert(MyClient(client_p));
dlinkFindDestroy(client_p, &safelisting_clients);
rb_dlinkFindDestroy(client_p, &safelisting_clients);
MyFree(client_p->localClient->safelist_data);

View file

@ -180,8 +180,8 @@ del_monitor(struct Client *client_p, const char *nicks)
if((monptr = find_monitor(name, 0)) == NULL)
continue;
dlinkFindDestroy(client_p, &monptr->users);
dlinkFindDestroy(monptr, &client_p->localClient->monitor_list);
rb_dlinkFindDestroy(client_p, &monptr->users);
rb_dlinkFindDestroy(monptr, &client_p->localClient->monitor_list);
}
}

View file

@ -118,7 +118,7 @@ rehash_glines(struct Client *source_p)
aconf = ptr->data;
delete_one_address_conf(aconf->host, aconf);
dlinkDestroy(ptr, &glines);
rb_dlinkDestroy(ptr, &glines);
}
}
@ -139,7 +139,7 @@ rehash_pglines(struct Client *source_p)
MyFree(glp_ptr->reason1);
MyFree(glp_ptr->reason2);
MyFree(glp_ptr);
dlinkDestroy(ptr, &pending_glines);
rb_dlinkDestroy(ptr, &pending_glines);
}
}
@ -160,7 +160,7 @@ rehash_tklines(struct Client *source_p)
aconf = ptr->data;
delete_one_address_conf(aconf->host, aconf);
dlinkDestroy(ptr, &temp_klines[i]);
rb_dlinkDestroy(ptr, &temp_klines[i]);
}
}
}
@ -182,7 +182,7 @@ rehash_tdlines(struct Client *source_p)
aconf = ptr->data;
delete_one_address_conf(aconf->host, aconf);
dlinkDestroy(ptr, &temp_dlines[i]);
rb_dlinkDestroy(ptr, &temp_dlines[i]);
}
}
}
@ -205,7 +205,7 @@ rehash_txlines(struct Client *source_p)
continue;
free_conf(aconf);
dlinkDestroy(ptr, &xline_conf_list);
rb_dlinkDestroy(ptr, &xline_conf_list);
}
}
@ -228,7 +228,7 @@ rehash_tresvs(struct Client *source_p)
continue;
free_conf(aconf);
dlinkDestroy(ptr, &resvTable[i]);
rb_dlinkDestroy(ptr, &resvTable[i]);
}
HASH_WALK_END
@ -240,7 +240,7 @@ rehash_tresvs(struct Client *source_p)
continue;
free_conf(aconf);
dlinkDestroy(ptr, &resv_conf_list);
rb_dlinkDestroy(ptr, &resv_conf_list);
}
}

View file

@ -516,7 +516,7 @@ remove_resv(struct Client *source_p, const char *name)
ilog(L_KLINE, "UR %s %s", get_oper_name(source_p), name);
}
/* already have ptr from the loop above.. */
dlinkDestroy(ptr, &resv_conf_list);
rb_dlinkDestroy(ptr, &resv_conf_list);
}
free_conf(aconf);

View file

@ -561,7 +561,7 @@ remove_xline(struct Client *source_p, const char *name)
remove_reject_mask(aconf->name, NULL);
free_conf(aconf);
dlinkDestroy(ptr, &xline_conf_list);
rb_dlinkDestroy(ptr, &xline_conf_list);
return;
}
}