]> git.meshlink.io Git - meshlink/blobdiff - src/logger.c
Replace the connection_tree with a connection_list.
[meshlink] / src / logger.c
index 56bee84566fafd1afbd9d2d1570e5ed34b8897a1..5de88bdeb5a9321eb09bd3182904de80ec54f0a3 100644 (file)
@@ -140,7 +140,8 @@ void logger(int level, int priority, const char *format, ...) {
        if(logcontrol) {
                suppress = true;
                logcontrol = false;
-               for(splay_node_t *node = connection_tree->head; node; node = node->next) {
+               for(list_node_t *node = connection_list->head, *next; node; node = next) {
+                       next = node->next;
                        connection_t *c = node->data;
                        if(!c->status.log)
                                continue;