]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Use an `int` since it's what `recvmmsg` returns
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 14 Nov 2025 13:55:24 +0000 (14:55 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 14 Nov 2025 13:55:24 +0000 (14:55 +0100)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist.cc

index f49fde8e4b2c1566e518686a8d3ee6793098aed7..c7fbd98933dffdc9840695eb4912df9cf5a80c45 100644 (file)
@@ -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<size_t>(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) {