mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Correct the signatures for the evmap_io_* functions to use evutil_socket_t.
svn:r1446
This commit is contained in:
parent
e3fd294a6d
commit
f3dee9e8be
6
evmap.c
6
evmap.c
@ -257,7 +257,7 @@ evmap_io_init(struct evmap_io *entry)
|
|||||||
/* return -1 on error, 0 on success if nothing changed in the event backend,
|
/* return -1 on error, 0 on success if nothing changed in the event backend,
|
||||||
* and 1 on success if something did. */
|
* and 1 on success if something did. */
|
||||||
int
|
int
|
||||||
evmap_io_add(struct event_base *base, int fd, struct event *ev)
|
evmap_io_add(struct event_base *base, evutil_socket_t fd, struct event *ev)
|
||||||
{
|
{
|
||||||
const struct eventop *evsel = base->evsel;
|
const struct eventop *evsel = base->evsel;
|
||||||
struct event_io_map *io = &base->io;
|
struct event_io_map *io = &base->io;
|
||||||
@ -319,7 +319,7 @@ evmap_io_add(struct event_base *base, int fd, struct event *ev)
|
|||||||
/* return -1 on error, 0 on success if nothing changed in the event backend,
|
/* return -1 on error, 0 on success if nothing changed in the event backend,
|
||||||
* and 1 on success if something did. */
|
* and 1 on success if something did. */
|
||||||
int
|
int
|
||||||
evmap_io_del(struct event_base *base, int fd, struct event *ev)
|
evmap_io_del(struct event_base *base, evutil_socket_t fd, struct event *ev)
|
||||||
{
|
{
|
||||||
const struct eventop *evsel = base->evsel;
|
const struct eventop *evsel = base->evsel;
|
||||||
struct event_io_map *io = &base->io;
|
struct event_io_map *io = &base->io;
|
||||||
@ -375,7 +375,7 @@ evmap_io_del(struct event_base *base, int fd, struct event *ev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
evmap_io_active(struct event_base *base, int fd, short events)
|
evmap_io_active(struct event_base *base, evutil_socket_t fd, short events)
|
||||||
{
|
{
|
||||||
struct event_io_map *io = &base->io;
|
struct event_io_map *io = &base->io;
|
||||||
struct evmap_io *ctx;
|
struct evmap_io *ctx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user