Browse Source

remove trailing spaces

Ocean Wang 14 years ago
parent
commit
bd58459c94
3 changed files with 17 additions and 17 deletions
  1. 8 8
      src/lib/cache/rrset_cache.h
  2. 2 2
      src/lib/cache/rrset_entry.cc
  3. 7 7
      src/lib/cache/rrset_entry.h

+ 8 - 8
src/lib/cache/rrset_cache.h

@@ -36,22 +36,22 @@ public:
     /// \param cache_size the size of rrset cache.
     /// \param rrset_class the class of rrset cache.
     RRsetCache(uint32_t cache_size, uint16_t rrset_class);
-    
+
     /// \brief Look up rrset in cache.
-    /// \return return the shared_ptr of rrset entry if it can 
+    /// \return return the shared_ptr of rrset entry if it can
     /// found in the cache, or else, return NULL.
     RRsetEntryPtr lookup(const isc::dns::Name& qname,
                          const isc::dns::RRType& qtype);
 
     /// \brief Update RRset Cache
     /// Update the rrset entry in the cache with the new one.
-    /// If the rrset has expired or doesn't exist in the cache, 
-    /// it will be added directly. It may be ingored if the new 
+    /// If the rrset has expired or doesn't exist in the cache,
+    /// it will be added directly. It may be ingored if the new
     /// rrset is not more authoritative than the old rrset in cache.
-    /// 
+    ///
     /// \param rrset The new rrset used to update cache.
     /// \param level trustworthiness of the rrset.
-    /// \return return the rrset entry in the cache, it may be the 
+    /// \return return the rrset entry in the cache, it may be the
     /// new added rrset entry or existed one if it is not replaced.
     RRsetEntryPtr update(const isc::dns::RRset& rrset,
                          const RRsetTrustLevel& level);
@@ -64,7 +64,7 @@ public:
     /// \todo It should can be loaded from one configured database.
     void load(const std::string& file_name);
 
-    /// \brief Resize the size of rrset cache in runtime. 
+    /// \brief Resize the size of rrset cache in runtime.
     bool resize(uint32_t size);
 
 private:
@@ -74,7 +74,7 @@ private:
 };
 
 typedef boost::shared_ptr<RRsetCache> RRsetCachePtr;
-    
+
 } // namespace cache
 } // namespace isc
 

+ 2 - 2
src/lib/cache/rrset_entry.cc

@@ -24,8 +24,8 @@ using namespace isc::dns;
 namespace isc {
 namespace cache {
 
-RRsetEntry::RRsetEntry(const isc::dns::RRset& rrset, const RRsetTrustLevel& level): 
-    entry_name_(genCacheEntryName(rrset.getName(), rrset.getType())), 
+RRsetEntry::RRsetEntry(const isc::dns::RRset& rrset, const RRsetTrustLevel& level):
+    entry_name_(genCacheEntryName(rrset.getName(), rrset.getType())),
     expire_time_(time(NULL) + rrset.getTTL().getValue()),
     trust_level_(level),
     rrset_(new RRset(rrset.getName(), rrset.getClass(), rrset.getType(), rrset.getTTL()))

+ 7 - 7
src/lib/cache/rrset_entry.h

@@ -34,7 +34,7 @@ namespace cache {
 /// RFC2181 section5.4.1.
 /// Bigger value is more trustworthy.
 enum RRsetTrustLevel {
-    // Default trust for RRset. 
+    // Default trust for RRset.
     RRSET_TRUST_DEFAULT = 0,
     // Additional information from non-authoritative answer.
     RRSET_TRUST_ADDITIONAL_NONAA,
@@ -50,8 +50,8 @@ enum RRsetTrustLevel {
     // Glue from a primary zone, or glue from a zone transfer.
     RRSET_TRUST_PRIM_GLUE,
     // Data from the authority section of an authoritative answer.
-    RRSET_TRUST_AUTHORITY_AA, 
-    // Authoritative data included in the answer section of 
+    RRSET_TRUST_AUTHORITY_AA,
+    // Authoritative data included in the answer section of
     // an authoritative reply.
     RRSET_TRUST_ANSWER_AA,
     // Data from a primary zone file, other than glue data.
@@ -60,7 +60,7 @@ enum RRsetTrustLevel {
 
 /// \brief RRset Entry
 /// The object of RRsetEntry represents one cached RRset.
-/// Each RRset entry may be refered using shared_ptr by several message 
+/// Each RRset entry may be refered using shared_ptr by several message
 /// entries.
 class RRsetEntry : public NsasEntry<RRsetEntry>
 {
@@ -72,7 +72,7 @@ public:
 
     /// \brief Return a pointer to a generated RRset
     isc::dns::RRsetPtr getRRset();
-    
+
     /// \brief Get the expiration time of the RRset.
     time_t getExpireTime() const;
 
@@ -99,8 +99,8 @@ private:
     RRsetTrustLevel trust_level_; // rrset trustworthiness.
     boost::shared_ptr<isc::dns::RRset> rrset_;
 };
-    
-typedef boost::shared_ptr<RRsetEntry> RRsetEntryPtr;    
+
+typedef boost::shared_ptr<RRsetEntry> RRsetEntryPtr;
 
 } // namespace cache
 } // namespace isc