From: Ruben Kerkhof Date: Sun, 20 Oct 2013 12:18:41 +0000 (+0200) Subject: Fix some spelling errors X-Git-Tag: rec-3.6.0-rc1~389^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c6960979c3c39e72579cbd78b2cdb4317b181aa;p=pdns Fix some spelling errors Found with codespell (https://github.com/lucasdemarchi/codespell) --- diff --git a/modules/geobackend/geobackend.cc b/modules/geobackend/geobackend.cc index abe06b404..08bd27d2c 100644 --- a/modules/geobackend/geobackend.cc +++ b/modules/geobackend/geobackend.cc @@ -467,7 +467,7 @@ void GeoBackend::loadDirectorMaps(const vector &newgrs) { throw PDNSException("duplicate georecord " + gr->qname + ", skipping"); } catch(PDNSException &e) { - L << Logger::Error << logprefix << "Error occured while reading director file " + L << Logger::Error << logprefix << "Error occurred while reading director file " << gr->directorfile << ": " << e.reason << endl; delete gr; } diff --git a/modules/geobackend/geobackend.hh b/modules/geobackend/geobackend.hh index ff3439c76..4170f8bde 100644 --- a/modules/geobackend/geobackend.hh +++ b/modules/geobackend/geobackend.hh @@ -88,7 +88,7 @@ public: void declareArguments(const string &suffix = "") { declare(suffix, "zone", "zonename to be served", ""); - declare(suffix, "soa-values", "values of the SOA master nameserver and hostmaster fields, comma seperated", ""); + declare(suffix, "soa-values", "values of the SOA master nameserver and hostmaster fields, comma separated", ""); declare(suffix, "ns-records", "targets of the NS records, comma separated.", ""); declare(suffix, "ttl", "TTL value for geo records", "3600"); declare(suffix, "ns-ttl", "TTL value for NS records", "86400"); diff --git a/modules/tinydnsbackend/cdb.cc b/modules/tinydnsbackend/cdb.cc index 69b9cc6cb..5b674c647 100644 --- a/modules/tinydnsbackend/cdb.cc +++ b/modules/tinydnsbackend/cdb.cc @@ -43,7 +43,7 @@ bool CDB::searchSuffix(const string &key) { //See CDB::searchKey() d_key = strdup(key.c_str()); - // We are ok wiht a search on things, but we do want to know if a record with that key exists......... + // We are ok with a search on things, but we do want to know if a record with that key exists......... bool hasDomain = (cdb_find(&d_cdb, key.c_str(), key.size()) == 1); if (hasDomain) { cdb_seqinit(&d_seqPtr, &d_cdb); diff --git a/pdns/backends/bind/bindbackend2.cc b/pdns/backends/bind/bindbackend2.cc index 957634cd3..c6fa1c112 100644 --- a/pdns/backends/bind/bindbackend2.cc +++ b/pdns/backends/bind/bindbackend2.cc @@ -438,7 +438,7 @@ void Bind2Backend::parseZoneFile(shared_ptr staging, BB2DomainInfo *bbd) bbd->d_status="parsed into memory at "+nowTime(); } -/** THIS IS AN INTERNAL FUNCTION! It does moadnsparser prio impedence matching +/** THIS IS AN INTERNAL FUNCTION! It does moadnsparser prio impedance matching This function adds a record to a domain with a certain id. Much of the complication is due to the efforts to benefit from std::string reference counting copy on write semantics */ void Bind2Backend::insert(shared_ptr stage, int id, const string &qnameu, const QType &qtype, const string &content, int ttl, int prio, const std::string& hashed) diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 7368c81d9..b3483db2d 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -25,7 +25,7 @@ typedef Distributor DNSDistributor; ArgvMap theArg; StatBag S; //!< Statistics are gathered across PDNS via the StatBag class S -PacketCache PC; //!< This is the main PacketCache, shared accross all threads +PacketCache PC; //!< This is the main PacketCache, shared across all threads DNSProxy *DP; DynListener *dl; CommunicatorClass Communicator; @@ -179,7 +179,7 @@ void declareStats(void) S.declare("query-cache-miss","Number of misses on the query cache"); S.declare("rfc2136-queries", "RFC2136 packets received."); - S.declare("rfc2136-answers", "RFC2136 packets succesfully answered."); + S.declare("rfc2136-answers", "RFC2136 packets successfully answered."); S.declare("rfc2136-refused", "RFC2136 packets that are refused."); S.declare("rfc2136-changes", "RFC2136 changes to records in total."); diff --git a/pdns/common_startup.hh b/pdns/common_startup.hh index 6cbd312bb..b4571385a 100644 --- a/pdns/common_startup.hh +++ b/pdns/common_startup.hh @@ -34,7 +34,7 @@ extern ArgvMap theArg; extern StatBag S; //!< Statistics are gathered across PDNS via the StatBag class S -extern PacketCache PC; //!< This is the main PacketCache, shared accross all threads +extern PacketCache PC; //!< This is the main PacketCache, shared across all threads extern DNSProxy *DP; extern DynListener *dl; extern CommunicatorClass Communicator; diff --git a/pdns/dns.hh b/pdns/dns.hh index 0acdb101d..125d799f3 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -241,7 +241,7 @@ struct dnsheader { /* fields in third byte */ unsigned qr: 1; /* response flag */ unsigned opcode: 4; /* purpose of message */ - unsigned aa: 1; /* authoritive answer */ + unsigned aa: 1; /* authoritative answer */ unsigned tc: 1; /* truncated message */ unsigned rd: 1; /* recursion desired */ /* fields in fourth byte */ @@ -255,7 +255,7 @@ struct dnsheader { /* fields in third byte */ unsigned rd :1; /* recursion desired */ unsigned tc :1; /* truncated message */ - unsigned aa :1; /* authoritive answer */ + unsigned aa :1; /* authoritative answer */ unsigned opcode :4; /* purpose of message */ unsigned qr :1; /* response flag */ /* fields in fourth byte */ diff --git a/pdns/dynlistener.cc b/pdns/dynlistener.cc index 0e80ab15b..cf025a10c 100644 --- a/pdns/dynlistener.cc +++ b/pdns/dynlistener.cc @@ -353,7 +353,7 @@ void DynListener::theListener() L<void MTasker::yield() } //! reports that an event took place for which threads may be waiting -/** From the kernel loop, sendEvent can be called to report that something occured for which there may be waiters. +/** From the kernel loop, sendEvent can be called to report that something occurred for which there may be waiters. \param key Key of the event for which threads may be waiting \param val If non-zero, pointer to the content of the event \return Returns -1 in case of error, 0 if there were no waiters, 1 if a thread was woken up. diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index 6852ececa..059c7c548 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -188,7 +188,7 @@ int PacketHandler::findUrl(DNSPacket *p, DNSPacket *r, string &target) return 0; } -/** Returns 0 if nothing was found, -1 if an error occured or 1 if the search +/** Returns 0 if nothing was found, -1 if an error occurred or 1 if the search was satisfied */ int PacketHandler::doFancyRecords(DNSPacket *p, DNSPacket *r, string &target) { diff --git a/pdns/rfc2136handler.cc b/pdns/rfc2136handler.cc index 4e3d11673..9102b918a 100644 --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@ -851,7 +851,7 @@ int PacketHandler::processUpdate(DNSPacket *p) { // 3.4.2 - Perform the updates. // There's a special condition where deleting the last NS record at zone apex is never deleted (3.4.2.4) - // This means we must do it outside the normal performUpdate() because that focusses only on a seperate RR. + // This means we must do it outside the normal performUpdate() because that focusses only on a separate RR. vector nsRRtoDelete; for(MOADNSParser::answers_t::const_iterator i=mdp.d_answers.begin(); i != mdp.d_answers.end(); ++i) { const DNSRecord *rr = &i->first; @@ -898,7 +898,7 @@ int PacketHandler::processUpdate(DNSPacket *p) { zone.append("$"); PC.purge(zone); - L<content; } - // for ANY answers we *must* have an authoritive answer + // for ANY answers we *must* have an authoritative answer else if(i->d_place==DNSResourceRecord::ANSWER && pdns_iequals(i->qname, qname) && ( i->qtype==qtype || (lwr.d_aabit && (qtype==QType(QType::ANY) || magicAddrMatch(qtype, i->qtype) ) ) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index df9ec42cf..583c2841c 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1074,7 +1074,7 @@ int SyncRes::doResolveAt(set nameservers, string auth, ret.push_back(*i); newtarget=i->content; } - // for ANY answers we *must* have an authoritive answer, unless we are forwarding recursively + // for ANY answers we *must* have an authoritative answer, unless we are forwarding recursively else if(i->d_place==DNSResourceRecord::ANSWER && pdns_iequals(i->qname, qname) && ( i->qtype==qtype || (lwr.d_aabit && (qtype==QType(QType::ANY) || magicAddrMatch(qtype, i->qtype) ) ) || sendRDQuery diff --git a/pdns/unix_utility.cc b/pdns/unix_utility.cc index 2279e6139..005284cb3 100644 --- a/pdns/unix_utility.cc +++ b/pdns/unix_utility.cc @@ -254,7 +254,7 @@ time_t Utility::timegm(struct tm *const t) /* Days since 1970 is 365 * number of years + number of leap years since 1970 */ day = years * 365 + (years + 1) / 4; - /* After 2100 we have to substract 3 leap years for every 400 years + /* After 2100 we have to subtract 3 leap years for every 400 years This is not intuitive. Most mktime implementations do not support dates after 2059, anyway, so we might leave this out for it's bloat. */ diff --git a/pdns/utility.hh b/pdns/utility.hh index 9f3a7796b..9e6e58ee9 100644 --- a/pdns/utility.hh +++ b/pdns/utility.hh @@ -79,7 +79,7 @@ public: int getValue( Semaphore::sem_value_t *sval ); }; -//! This is a utility class used for platform independant abstraction. +//! This is a utility class used for platform independent abstraction. class Utility { public: