From: Miod Vallat Date: Wed, 11 Jun 2025 07:48:07 +0000 (+0200) Subject: Remove never used third argument of xfrName(). X-Git-Tag: dnsdist-2.0.0-beta1~34^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15656%2Fhead;p=thirdparty%2Fpdns.git Remove never used third argument of xfrName(). --- diff --git a/pdns/dnsdistdist/dnsdist-svc.cc b/pdns/dnsdistdist/dnsdist-svc.cc index 18ec3a62c3..19a2222c22 100644 --- a/pdns/dnsdistdist/dnsdist-svc.cc +++ b/pdns/dnsdistdist/dnsdist-svc.cc @@ -79,7 +79,7 @@ bool generateSVCPayload(std::vector& payload, uint16_t priority, const pw.startRecord(g_rootdnsname, QType::A, 60, QClass::IN, DNSResourceRecord::ANSWER, false); size_t offset = pw.size(); pw.xfr16BitInt(priority); - pw.xfrName(target, false, true); + pw.xfrName(target, false); pw.xfrSvcParamKeyVals(params); pw.commit(); diff --git a/pdns/dnsparser.hh b/pdns/dnsparser.hh index 947ba6c77c..47f52df2e0 100644 --- a/pdns/dnsparser.hh +++ b/pdns/dnsparser.hh @@ -136,7 +136,7 @@ public: val=get8BitInt(); } - void xfrName(DNSName& name, bool /* compress */ = false, bool /* noDot */ = false) + void xfrName(DNSName& name, bool /* compress */ = false) { name = getName(); } diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 85ce9e471e..7db552d863 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -357,7 +357,7 @@ boilerplate_conv(OPENPGPKEY, boilerplate_conv(SVCB, conv.xfr16BitInt(d_priority); - conv.xfrName(d_target, false, true); + conv.xfrName(d_target, false); if (d_priority != 0) { conv.xfrSvcParamKeyVals(d_params); } @@ -365,7 +365,7 @@ boilerplate_conv(SVCB, boilerplate_conv(HTTPS, conv.xfr16BitInt(d_priority); - conv.xfrName(d_target, false, true); + conv.xfrName(d_target, false); if (d_priority != 0) { conv.xfrSvcParamKeyVals(d_params); } diff --git a/pdns/dnswriter.cc b/pdns/dnswriter.cc index 5ee38dd757..fc02ebef79 100644 --- a/pdns/dnswriter.cc +++ b/pdns/dnswriter.cc @@ -316,7 +316,7 @@ template uint16_t GenericDNSPacketWriter::lookup return bestpos; } // this is the absolute hottest function in the pdns recursor -template void GenericDNSPacketWriter::xfrName(const DNSName& name, bool compress, bool) +template void GenericDNSPacketWriter::xfrName(const DNSName& name, bool compress) { if(l_verbose) cout<<"Wants to write "<