mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 13:58:58 -04:00
from trunk: constify structs; from Andrei Nigmatulin
svn:r960
This commit is contained in:
parent
1958f3a7ba
commit
dfa9cb5d9b
@ -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,
|
||||||
|
2
epoll.c
2
epoll.c
@ -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,
|
||||||
|
2
event.c
2
event.c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user