]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/irc_dictionary.c
macro replacement
[irc/rqf/shadowircd.git] / src / irc_dictionary.c
index 2c901e9ab73d2882b0f76886f575ca685f679515..eba262c64de400e5ff924521333fe125fcec7368 100644 (file)
@@ -471,7 +471,7 @@ void irc_dictionary_destroy(struct Dictionary *dtree,
 
        s_assert(dtree != NULL);
 
-       DLINK_FOREACH_SAFE(n, tn, dtree->head)
+       RB_DLINK_FOREACH_SAFE(n, tn, dtree->head)
        {
                if (destroy_cb != NULL)
                        (*destroy_cb)(n, privdata);
@@ -508,7 +508,7 @@ void irc_dictionary_foreach(struct Dictionary *dtree,
 
        s_assert(dtree != NULL);
 
-       DLINK_FOREACH_SAFE(n, tn, dtree->head)
+       RB_DLINK_FOREACH_SAFE(n, tn, dtree->head)
        {
                /* delem_t is a subclass of node_t. */
                struct DictionaryElement *delem = (struct DictionaryElement *) n;
@@ -546,7 +546,7 @@ void *irc_dictionary_search(struct Dictionary *dtree,
 
        s_assert(dtree != NULL);
 
-       DLINK_FOREACH_SAFE(n, tn, dtree->head)
+       RB_DLINK_FOREACH_SAFE(n, tn, dtree->head)
        {
                /* delem_t is a subclass of node_t. */
                struct DictionaryElement *delem = (struct DictionaryElement *) n;