Drop MSVC-specific #pragma by fixing function type

This commit is contained in:
Dmitri Tikhonov 2018-05-07 16:58:14 -04:00
parent db236e9092
commit 3f050ae322

View file

@ -442,7 +442,7 @@ read_one_packet (struct read_iter *iter)
static void
read_handler (int fd, short flags, void *ctx)
read_handler (evutil_socket_t fd, short flags, void *ctx)
{
struct service_port *sport = ctx;
lsquic_engine_t *const engine = sport->engine;
@ -494,7 +494,6 @@ read_handler (int fd, short flags, void *ctx)
static int
add_to_event_loop (struct service_port *sport, struct event_base *eb)
{
#pragma warning(suppress:4028)
sport->ev = event_new(eb, sport->fd, EV_READ|EV_PERSIST, read_handler,
sport);
if (sport->ev)