From f78d203b80ffe4210420a4fa5b2df136731c8212 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 12 Jul 2023 11:29:32 +0200 Subject: [PATCH] calidns: Fix two clang-tidy warnings --- pdns/calidns.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/calidns.cc b/pdns/calidns.cc index 6bcbcb3a7a..4e6b3cf613 100644 --- a/pdns/calidns.cc +++ b/pdns/calidns.cc @@ -55,6 +55,7 @@ static po::variables_map g_vm; static bool g_quiet; +//NOLINTNEXTLINE(performance-unnecessary-value-param): we do want a copy to increase the reference count, thank you very much static void recvThread(const std::shared_ptr>> sockets) { vector rfds, fds; @@ -142,7 +143,7 @@ static void replaceEDNSClientSubnet(vector* packet, const Netmask& ecsR memcpy(&packet->at(packetSize - sizeof(addr)), &addr, sizeof(addr)); } -static void sendPackets(const vector>& sockets, const vector* >& packets, int qps, ComboAddress dest, const Netmask& ecsRange) +static void sendPackets(const vector>& sockets, const vector* >& packets, uint32_t qps, ComboAddress dest, const Netmask& ecsRange) { unsigned int burst=100; const auto nsecPerBurst=1*(unsigned long)(burst*1000000000.0/qps); -- 2.47.2