From 099a91299250ebf07e357d0c3c9290dd1b2b3534 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 8 Nov 2020 19:48:44 -0600 Subject: [PATCH] Fix posix regression. --- src/core/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/net.c b/src/core/net.c index f8ca27ff..697171ab 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -668,7 +668,7 @@ JanetAsyncStatus net_machine_accept(JanetListenerState *s, JanetAsyncEvent event } JANET_NO_RETURN static void janet_sched_accept(JanetStream *stream, JanetFunction *fun) { - JanetListenerState *state = janet_listen(stream, net_machine_accept, JANET_ASYNC_LISTEN_READ, sizeof(NetStateAccept), NULL); + NetStateAccept *state = (NetStateAccept *) janet_listen(stream, net_machine_accept, JANET_ASYNC_LISTEN_READ, sizeof(NetStateAccept), NULL); state->function = fun; janet_await(); }