BIND 10 trac449, updated. adba8b7c9e699cf557646e942012567f8e5156c9 [trac449] replaces some tabs with spaces

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Feb 15 10:58:58 UTC 2011


The branch, trac449 has been updated
       via  adba8b7c9e699cf557646e942012567f8e5156c9 (commit)
      from  0ae5d2d73aad78ee24e641870cec1ab06f65e3f6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit adba8b7c9e699cf557646e942012567f8e5156c9
Author: Jelte Jansen <jelte at isc.org>
Date:   Tue Feb 15 11:22:27 2011 +0100

    [trac449] replaces some tabs with spaces

-----------------------------------------------------------------------

Summary of changes:
 src/lib/cache/resolver_cache.cc |   42 +++++++++++++++++++-------------------
 src/lib/cache/rrset_cache.cc    |    4 +-
 2 files changed, 23 insertions(+), 23 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/cache/resolver_cache.cc b/src/lib/cache/resolver_cache.cc
index 67d86d0..41a8487 100644
--- a/src/lib/cache/resolver_cache.cc
+++ b/src/lib/cache/resolver_cache.cc
@@ -180,19 +180,19 @@ ResolverCache::lookupClosestRRset(const isc::dns::Name& qname,
                                   const isc::dns::RRClass& qclass) const
 {
     ResolverClassCache* cc = getClassCache(qclass);
-	if (cc) {
-	    unsigned int count = qname.getLabelCount();
-	    unsigned int level = 0;
-	    while(level < count) {
-	        Name close_name = qname.split(level);
-	        RRsetPtr rrset_ptr = cc->lookup(close_name, qtype);
-	        if (rrset_ptr) {
-	            return (rrset_ptr);
-	        } else {
-	            ++level;
-	        }
-	    }
-	}
+    if (cc) {
+        unsigned int count = qname.getLabelCount();
+        unsigned int level = 0;
+        while(level < count) {
+            Name close_name = qname.split(level);
+            RRsetPtr rrset_ptr = cc->lookup(close_name, qtype);
+            if (rrset_ptr) {
+                return (rrset_ptr);
+            } else {
+                ++level;
+            }
+        }
+    }
 
     return (RRsetPtr());
 }
@@ -203,20 +203,20 @@ ResolverCache::update(const isc::dns::Message& msg) {
     QuestionIterator iter = msg.beginQuestion();
     ResolverClassCache* cc = getClassCache((*iter)->getClass());
     if (cc) {
-		return (cc->update(msg));
-	} else {
-		return (false);
-	}
+        return (cc->update(msg));
+    } else {
+        return (false);
+    }
 }
 
 bool
 ResolverCache::update(const isc::dns::ConstRRsetPtr rrset_ptr) {
     ResolverClassCache* cc = getClassCache(rrset_ptr->getClass());
     if (cc) {
-		return (cc->update(rrset_ptr));
-	} else {
-		return (false);
-	}
+        return (cc->update(rrset_ptr));
+    } else {
+        return (false);
+    }
 }
 
 void
diff --git a/src/lib/cache/rrset_cache.cc b/src/lib/cache/rrset_cache.cc
index e980bcd..d374164 100644
--- a/src/lib/cache/rrset_cache.cc
+++ b/src/lib/cache/rrset_cache.cc
@@ -52,8 +52,8 @@ RRsetCache::lookup(const isc::dns::Name& qname,
 
 RRsetEntryPtr
 RRsetCache::update(const isc::dns::RRset& rrset, const RRsetTrustLevel& level) {
-	// TODO: If the RRset is an NS, we should update the NSAS as well
-	
+    // TODO: If the RRset is an NS, we should update the NSAS as well
+    
     // lookup first
     RRsetEntryPtr entry_ptr = lookup(rrset.getName(), rrset.getType());
     if(!entry_ptr) {




More information about the bind10-changes mailing list