diff --git a/devpoll.c b/devpoll.c index 513065ef..cbd27309 100644 --- a/devpoll.c +++ b/devpoll.c @@ -75,7 +75,7 @@ static int devpoll_del (void *, struct event *); static int devpoll_dispatch (struct event_base *, void *, struct timeval *); static void devpoll_dealloc (struct event_base *, void *); -struct eventop devpollops = { +const struct eventop devpollops = { "devpoll", devpoll_init, devpoll_add, diff --git a/epoll.c b/epoll.c index 3a445781..cf3c8593 100644 --- a/epoll.c +++ b/epoll.c @@ -75,7 +75,7 @@ static int epoll_del (void *, struct event *); static int epoll_dispatch (struct event_base *, void *, struct timeval *); static void epoll_dealloc (struct event_base *, void *); -struct eventop epollops = { +const struct eventop epollops = { "epoll", epoll_init, epoll_add, diff --git a/event.c b/event.c index 9d32203d..63802083 100644 --- a/event.c +++ b/event.c @@ -79,7 +79,7 @@ extern const struct eventop win32ops; #endif /* In order of preference */ -const struct eventop *eventops[] = { +static const struct eventop *eventops[] = { #ifdef HAVE_EVENT_PORTS &evportops, #endif