From: Peter van Dijk Date: Wed, 13 May 2015 13:13:31 +0000 (+0200) Subject: nit X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~58^2~21^2~5^2~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4a05b1ff8fad8a8fe55880caa16ee68abfbec8e;p=thirdparty%2Fpdns.git nit --- diff --git a/pdns/dns.cc b/pdns/dns.cc index 1b5a9b264c..b08f410518 100644 --- a/pdns/dns.cc +++ b/pdns/dns.cc @@ -120,7 +120,7 @@ bool dnspacketLessThan(const std::string& a, const std::string& b) } while(aLabelLen && bLabelLen); if(aLabelLen || bLabelLen) // - throw runtime_error("Error in label comparison routing, should not happen"); + throw runtime_error("Error in label comparison routine, should not happen"); uint16_t aQtype = aSafe[aPos]*256 + aSafe[aPos + 1]; uint16_t bQtype = bSafe[bPos]*256 + bSafe[bPos + 1]; diff --git a/pdns/dnspacket.hh b/pdns/dnspacket.hh index db1181b1e6..01e89e8259 100644 --- a/pdns/dnspacket.hh +++ b/pdns/dnspacket.hh @@ -110,7 +110,7 @@ public: DNSResourceRecord d_place field */ void addRecord(const DNSResourceRecord &); // adds to 'rrs' - void setQuestion(int op, const string &qdomain, int qtype); // wipes 'd', sets a random id, creates start of packet (label, type, class etc) + void setQuestion(int op, const string &qdomain, int qtype); // wipes 'd', sets a random id, creates start of packet (domain, type, class etc) DTime d_dt; //!< the time this packet was created. replyPacket() copies this in for you, so d_dt becomes the time spent processing the question+answer void wrapup(); // writes out queued rrs, and generates the binary packet. also shuffles. also rectifies dnsheader 'd', and copies it to the stringbuffer