From 7f1ec4c26e1c92f79eb1ac21f03871919c65f29d Mon Sep 17 00:00:00 2001 From: NissimBendanan <121024835+NissimBendanan@users.noreply.github.com> Date: Thu, 10 Aug 2023 14:18:28 +0300 Subject: [PATCH] Update win_tcpconn.c fix compile error in nano using clang version 16.0.5 fix issue: https://github.com/nanomsg/nng/issues/1676 --- src/platform/windows/win_tcpconn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/windows/win_tcpconn.c b/src/platform/windows/win_tcpconn.c index f0e7c9557..cc906803c 100644 --- a/src/platform/windows/win_tcpconn.c +++ b/src/platform/windows/win_tcpconn.c @@ -111,8 +111,9 @@ tcp_recv_cancel(nni_aio *aio, void *arg, int rv) } static void -tcp_recv(nni_tcp_conn *c, nni_aio *aio) +tcp_recv(void *arg, nni_aio *aio) { + nni_tcp_conn *c = arg; int rv; if (nni_aio_begin(aio) != 0) {