From: Remi Gacogne Date: Fri, 14 Nov 2025 13:55:24 +0000 (+0100) Subject: dnsdist: Use an `int` since it's what `recvmmsg` returns X-Git-Tag: rec-5.4.0-alpha1~69^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0014f8e2d23d2d812c4db52d3e15fcc370f67f5a;p=thirdparty%2Fpdns.git dnsdist: Use an `int` since it's what `recvmmsg` returns Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/dnsdist.cc b/pdns/dnsdistdist/dnsdist.cc index f49fde8e4b..c7fbd98933 100644 --- a/pdns/dnsdistdist/dnsdist.cc +++ b/pdns/dnsdistdist/dnsdist.cc @@ -2242,7 +2242,7 @@ static void MultipleMessagesUDPClientThread(ClientState* clientState) /* reset the IO vector, since it's also used to send the vector of responses to avoid having to copy the data around No need to reset the parts that have not been used, though. */ - for (size_t idx = 0; idx < static_cast(msgsGot); idx++) { + for (int idx = 0; idx < msgsGot; idx++) { auto& slot = recvData[idx]; /* only resize if the buffer is actually smaller than expected */ if (slot.packet.size() < initialBufferSize) {