- p.request = request;
-
- if(splay_search(past_request_tree, &p)) {
- ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request"));
- return true;
- } else {
- new = xmalloc(sizeof *new);
- new->request = xstrdup(request);
- new->firstseen = time(NULL);
- splay_insert(past_request_tree, new);
- event_add(&past_request_event, &(struct timeval){10, 0});
- return false;
- }
-}
-
-void age_past_requests(int fd, short events, void *data) {
- splay_node_t *node, *next;
- past_request_t *p;
+static void age_past_requests(event_loop_t *loop, void *data) {
+ meshlink_handle_t *mesh = loop->data;