]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- For #1318: Fix compile warnings for DoH compile on windows.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Aug 2025 08:04:00 +0000 (10:04 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Aug 2025 08:04:00 +0000 (10:04 +0200)
doc/Changelog
util/netevent.c

index 6aab0149da694922b35bddc5d11c47d818053a19..2efbb551539650f43f43b2b80e9e1085789f4ef4 100644 (file)
@@ -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.
index 0756dc26c4adc9fc93aa6b26a0a80b867ab580e3..7a015e08e9d1051bc33249a456cfb726fa38b560 100644 (file)
@@ -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) {