-/* Debugging */
-
-void dump_connection_list(void)
-{
- avl_node_t *node;
- connection_t *cl;
-cp
- syslog(LOG_DEBUG, _("Connection list:"));
-
- syslog(LOG_DEBUG, _(" %s at %s port %hd flags %d sockets %d, %d status %04x"),
- myself->name, myself->hostname, myself->port, myself->flags,
- myself->socket, myself->meta_socket, myself->status);
-
- for(node = connection_tree->head; node; node = node->next)
- {
- cl = (connection_t *)node->data;
- syslog(LOG_DEBUG, _(" %s at %s port %hd flags %d sockets %d, %d status %04x"),
- cl->name, cl->hostname, cl->port, cl->flags,
- cl->socket, cl->meta_socket, cl->status);
- }
-
- syslog(LOG_DEBUG, _("End of connection list."));
-cp
+void connection_del(connection_t *c) {
+ splay_delete(connection_tree, c);