From dfa9cb5d9be0d21f7769ad2e41b41101c112d0af Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sat, 13 Dec 2008 06:12:05 +0000 Subject: [PATCH] from trunk: constify structs; from Andrei Nigmatulin svn:r960 --- devpoll.c | 2 +- epoll.c | 2 +- event.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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