mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Drop MSVC-specific #pragma by fixing function type
This commit is contained in:
parent
db236e9092
commit
3f050ae322
1 changed files with 1 additions and 2 deletions
|
@ -442,7 +442,7 @@ read_one_packet (struct read_iter *iter)
|
||||||
|
|
||||||
|
|
||||||
static void
|
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;
|
struct service_port *sport = ctx;
|
||||||
lsquic_engine_t *const engine = sport->engine;
|
lsquic_engine_t *const engine = sport->engine;
|
||||||
|
@ -494,7 +494,6 @@ read_handler (int fd, short flags, void *ctx)
|
||||||
static int
|
static int
|
||||||
add_to_event_loop (struct service_port *sport, struct event_base *eb)
|
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->ev = event_new(eb, sport->fd, EV_READ|EV_PERSIST, read_handler,
|
||||||
sport);
|
sport);
|
||||||
if (sport->ev)
|
if (sport->ev)
|
||||||
|
|
Loading…
Reference in a new issue