]> granicus.if.org Git - pdns/commitdiff
Fix some spelling errors
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 20 Oct 2013 12:18:41 +0000 (14:18 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 20 Oct 2013 12:18:41 +0000 (14:18 +0200)
Found with codespell (https://github.com/lucasdemarchi/codespell)

15 files changed:
modules/geobackend/geobackend.cc
modules/geobackend/geobackend.hh
modules/tinydnsbackend/cdb.cc
pdns/backends/bind/bindbackend2.cc
pdns/common_startup.cc
pdns/common_startup.hh
pdns/dns.hh
pdns/dynlistener.cc
pdns/mtasker.cc
pdns/packethandler.cc
pdns/rfc2136handler.cc
pdns/speedtest.cc
pdns/syncres.cc
pdns/unix_utility.cc
pdns/utility.hh

index abe06b404f7006765d1fa2618eccaad7e06f0cf5..08bd27d2c67cfacd07418378fd5d2cb482cc3836 100644 (file)
@@ -467,7 +467,7 @@ void GeoBackend::loadDirectorMaps(const vector<GeoRecord*> &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;
                }
index ff3439c76809841a909168c7fff682a718c4c83c..4170f8bde307ead9529764a8cc640160af6d8c2d 100644 (file)
@@ -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");
index 69b9cc6cb502e6f0fa6b75cf2ea2b72aef359775..5b674c647d48ca1ad3fb3973761e5517431bd79d 100644 (file)
@@ -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);
index 957634cd392c8c83e3239009d930d3b8d73cbef2..c6fa1c112ba544d7472bb46e401bae8ab1281295 100644 (file)
@@ -438,7 +438,7 @@ void Bind2Backend::parseZoneFile(shared_ptr<State> 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<State> stage, int id, const string &qnameu, const QType &qtype, const string &content, int ttl, int prio, const std::string& hashed)
index 7368c81d921a59ae0328ab98f3e4f328299c56fc..b3483db2de4cb93d3c322e0de736c74139f2bb4f 100644 (file)
@@ -25,7 +25,7 @@ typedef Distributor<DNSPacket,DNSPacket,PacketHandler> 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.");
 
index 6cbd312bba581bfab251c65c44d4cc57a3055403..b4571385a760ef2f0de58ac6ae19ccba2b8f15d6 100644 (file)
@@ -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;
index 0acdb101dad0fb2cdbabe1419b43e50c1afeee58..125d799f3cff4841b20e8f5d728ed6732544026d 100644 (file)
@@ -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 */
index 0e80ab15bde04f0baba1ebee699b2d237d9653c5..cf025a10cfed16eb56bfe9cebbea59b307df9ddf 100644 (file)
@@ -353,7 +353,7 @@ void DynListener::theListener()
     L<<Logger::Error<<"Fatal STL error: "<<e.what()<<endl;
   }
   catch(...) {
-    L<<Logger::Error<<"Fatal: unknown exception occured"<<endl;
+    L<<Logger::Error<<"Fatal: unknown exception occurred"<<endl;
   }
 }
 
index 8178c72f327cb76923fa589b8e566aa6311e438e..a4a7c83492137bbb4835c88e62b921946a6761a4 100644 (file)
@@ -212,7 +212,7 @@ template<class Key, class Val>void MTasker<Key,Val>::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.
index 6852ececabaa1d0618fa5a85c0c535578212989f..059c7c54816b6c5ecab2d89974df1576ff48faea 100644 (file)
@@ -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)
 {
index 4e3d1167326542253b2bdcdd3f88daf79ed33246..9102b918a8e09615421f1e8ece81984fdefa8412 100644 (file)
@@ -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<const DNSRecord *> 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<<Logger::Info<<msgPrefix<<"Update completed, "<<changedRecords<<" changed records commited."<<endl;
+      L<<Logger::Info<<msgPrefix<<"Update completed, "<<changedRecords<<" changed records committed."<<endl;
     } else {
       //No change, no commit, we perform abort() because some backends might like this more.
       L<<Logger::Info<<msgPrefix<<"Update completed, 0 changes, rolling back."<<endl;
index 82bb8b4a4fcfcac7624dd21c0d0d3dd5a7b5caee..0ea86bb33aff34395b2c6ada4405bf136e0f294c 100644 (file)
@@ -592,7 +592,7 @@ struct ParsePacketTest
           ret.push_back(*i);
           newtarget=i->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) ) )
index df9ec42cf1b683b988e159abe354bb3e27cf68ba..583c2841ce56ea93b629b8d1785d17b080f1de7f 100644 (file)
@@ -1074,7 +1074,7 @@ int SyncRes::doResolveAt(set<string, CIStringCompare> 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
index 2279e6139d082434db268538d781efdafda851ca..005284cb3d8fe7691612f333b0993d795e564b24 100644 (file)
@@ -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. */
index 9f3a7796b25f639a914a1a1a85969f6f146618a0..9e6e58ee9bef8b819ce91c6b7036db6d7a938a48 100644 (file)
@@ -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: