Skip to content

Commit

Permalink
dnsdist: Fix clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Dec 23, 2024
1 parent f683936 commit c5e78a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pdns/dnsdistdist/dnsdist-lua-ffi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ void dnsdist_ffi_dnsquestion_send_trap(dnsdist_ffi_dnsquestion_t* dq, const char

void dnsdist_ffi_dnsquestion_spoof_packet(dnsdist_ffi_dnsquestion_t* dq, const char* raw, size_t len)
{
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
dnsdist::self_answers::generateAnswerFromRawPacket(*dq->dq, PacketBuffer(raw, raw + len));
}

Expand Down
6 changes: 3 additions & 3 deletions pdns/dnsdistdist/dnsdist-rules-factory.hh
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ class HTTPHeaderRule : public DNSRule
{
public:
HTTPHeaderRule(const std::string& header, const std::string& regex);
bool matches(const DNSQuestion* dq) const override;
bool matches(const DNSQuestion* dnsQuestion) const override;
string toString() const override;

private:
Expand All @@ -574,7 +574,7 @@ class HTTPPathRule : public DNSRule
{
public:
HTTPPathRule(std::string path);
bool matches(const DNSQuestion* dq) const override;
bool matches(const DNSQuestion* dnsQuestion) const override;
string toString() const override;

private:
Expand All @@ -585,7 +585,7 @@ class HTTPPathRegexRule : public DNSRule
{
public:
HTTPPathRegexRule(const std::string& regex);
bool matches(const DNSQuestion* dq) const override;
bool matches(const DNSQuestion* dnsQuestion) const override;
string toString() const override;

private:
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnsdistdist/dnsdist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ static void spoofResponseFromString(DNSQuestion& dnsQuestion, const string& spoo

static void spoofPacketFromString(DNSQuestion& dnsQuestion, const string& spoofContent)
{
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
dnsdist::self_answers::generateAnswerFromRawPacket(dnsQuestion, PacketBuffer(spoofContent.data(), spoofContent.data() + spoofContent.size()));
}

Expand Down

0 comments on commit c5e78a8

Please sign in to comment.