- cp();
-
- splay_delete(connection_tree, c);
-}
-
-void dump_connections(void) {
- splay_node_t *node;
- connection_t *c;
-
- cp();
-
- logger(LOG_DEBUG, _("Connections:"));
-
- for(node = connection_tree->head; node; node = node->next) {
- c = node->data;
- logger(LOG_DEBUG, _(" %s at %s options %lx socket %d status %04x outbuf %d/%d/%d"),
- c->name, c->hostname, c->options, c->socket, c->status.value,
- c->outbufsize, c->outbufstart, c->outbuflen);
+ for(list_node_t *node = connection_list->head; node; node = node->next) {
+ if(node->data == c) {
+ list_delete_node(connection_list, node);
+ return;
+ }