from trunk: constify structs; from Andrei Nigmatulin

svn:r960
This commit is contained in:
Niels Provos 2008-12-13 06:12:05 +00:00
parent 1958f3a7ba
commit dfa9cb5d9b
3 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ static int devpoll_del (void *, struct event *);
static int devpoll_dispatch (struct event_base *, void *, struct timeval *); static int devpoll_dispatch (struct event_base *, void *, struct timeval *);
static void devpoll_dealloc (struct event_base *, void *); static void devpoll_dealloc (struct event_base *, void *);
struct eventop devpollops = { const struct eventop devpollops = {
"devpoll", "devpoll",
devpoll_init, devpoll_init,
devpoll_add, devpoll_add,

View File

@ -75,7 +75,7 @@ static int epoll_del (void *, struct event *);
static int epoll_dispatch (struct event_base *, void *, struct timeval *); static int epoll_dispatch (struct event_base *, void *, struct timeval *);
static void epoll_dealloc (struct event_base *, void *); static void epoll_dealloc (struct event_base *, void *);
struct eventop epollops = { const struct eventop epollops = {
"epoll", "epoll",
epoll_init, epoll_init,
epoll_add, epoll_add,

View File

@ -79,7 +79,7 @@ extern const struct eventop win32ops;
#endif #endif
/* In order of preference */ /* In order of preference */
const struct eventop *eventops[] = { static const struct eventop *eventops[] = {
#ifdef HAVE_EVENT_PORTS #ifdef HAVE_EVENT_PORTS
&evportops, &evportops,
#endif #endif