summaryrefslogtreecommitdiff
path: root/lib/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/event.h')
-rw-r--r--lib/event.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/event.h b/lib/event.h
index cd85bf78..3af33a7f 100644
--- a/lib/event.h
+++ b/lib/event.h
@@ -38,6 +38,7 @@ struct event_cork {
DOMAIN(cork) lock;
u32 count;
list events;
+ list sockets;
};
extern event_list global_event_list;
@@ -56,6 +57,7 @@ static inline void ev_init_list(event_list *el, struct birdloop *loop, const cha
static inline void ev_init_cork(struct event_cork *ec, const char *name)
{
init_list(&ec->events);
+ init_list(&ec->sockets);
ec->lock = DOMAIN_NEW(cork, name);
ec->count = 0;
};