From: W.C.A. Wijngaards Date: Fri, 27 Nov 2020 08:08:48 +0000 (+0100) Subject: - Fix compile warning for type cast in http2_submit_dns_response. X-Git-Tag: release-1.13.0rc3~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11139c1b4e32f6c629e9be430e9c9ec4304efcd5;p=thirdparty%2Funbound.git - Fix compile warning for type cast in http2_submit_dns_response. --- diff --git a/doc/Changelog b/doc/Changelog index d0b9f223c..4664c3423 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +27 November 2020: Wouter + - Fix compile warning for type cast in http2_submit_dns_response. + 26 November 2020: Wouter - Fix to omit UDP receive errors from log, if verbosity low. These happen because of udp-connect. diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index bd87aac56..d63c0e0aa 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -2208,7 +2208,7 @@ int http2_submit_dns_response(struct http2_session* h2_session) } rlen = sldns_buffer_remaining(h2_session->c->buffer); - snprintf(rlen_str, sizeof(rlen_str), "%u", rlen); + snprintf(rlen_str, sizeof(rlen_str), "%u", (unsigned)rlen); lock_basic_lock(&http2_response_buffer_count_lock); if(http2_response_buffer_count + rlen > http2_response_buffer_max) {