From ebfa09e04fff2f2737dbb983142af59fa47911ed Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 22 Aug 2025 10:04:00 +0200 Subject: [PATCH] - For #1318: Fix compile warnings for DoH compile on windows. --- doc/Changelog | 3 +++ util/netevent.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 6aab0149d..2efbb5515 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +22 August 2025: Wouter + - For #1318: Fix compile warnings for DoH compile on windows. + 21 August 2025: Wouter - Fix to check for extraneous command arguments for unbound-control, when the command takes no arguments but there are arguments present. diff --git a/util/netevent.c b/util/netevent.c index 0756dc26c..7a015e08e 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -5194,7 +5194,7 @@ ssize_t http2_recv_cb(nghttp2_session* ATTR_UNUSED(session), uint8_t* buf, } #endif /* HAVE_SSL */ - ret = recv(h2_session->c->fd, buf, len, MSG_DONTWAIT); + ret = recv(h2_session->c->fd, (void*)buf, len, MSG_DONTWAIT); if(ret == 0) { return NGHTTP2_ERR_EOF; } else if(ret < 0) { @@ -5522,7 +5522,7 @@ ssize_t http2_send_cb(nghttp2_session* ATTR_UNUSED(session), const uint8_t* buf, } #endif /* HAVE_SSL */ - ret = send(h2_session->c->fd, buf, len, 0); + ret = send(h2_session->c->fd, (void*)buf, len, 0); if(ret == 0) { return NGHTTP2_ERR_CALLBACK_FAILURE; } else if(ret < 0) { -- 2.47.3