From: W.C.A. Wijngaards Date: Fri, 22 Aug 2025 08:04:00 +0000 (+0200) Subject: - For #1318: Fix compile warnings for DoH compile on windows. X-Git-Tag: release-1.24.0rc1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebfa09e04fff2f2737dbb983142af59fa47911ed;p=thirdparty%2Funbound.git - For #1318: Fix compile warnings for DoH compile on windows. --- 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) {