BIND 10 trac1579, updated. 2d99288b3400b01e3eb1402717a182f5e828c7b7 [1579] more cleanups, mostly editorial ones.
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Apr 12 01:04:00 UTC 2012
The branch, trac1579 has been updated
via 2d99288b3400b01e3eb1402717a182f5e828c7b7 (commit)
from 52ee8a28742a20415742651cbdf7982387050641 (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 2d99288b3400b01e3eb1402717a182f5e828c7b7
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Wed Apr 11 18:02:33 2012 -0700
[1579] more cleanups, mostly editorial ones.
- indentation
- spelling: 'other else' should be 'otherwise'
- constify
- avoid using an unnecessary temporary variable
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/database.cc | 11 +++++------
src/lib/datasrc/database.h | 13 +++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/database.cc b/src/lib/datasrc/database.cc
index 82028ad..997ceba 100644
--- a/src/lib/datasrc/database.cc
+++ b/src/lib/datasrc/database.cc
@@ -666,8 +666,8 @@ DatabaseClient::Finder::findWildcardMatch(const isc::dns::Name& name,
LOG_DEBUG(logger, DBG_TRACE_DETAILED,
DATASRC_DATABASE_WILDCARD_EMPTY).
arg(accessor_->getDBName()).arg(wildcard).arg(name);
- FindResultFlags flags = (RESULT_WILDCARD |
- dnssec_ctx.getResultFlags());
+ const FindResultFlags flags = (RESULT_WILDCARD |
+ dnssec_ctx.getResultFlags());
if (dnssec_ctx.isNSEC()) {
ConstRRsetPtr nsec = findNSECCover(Name(wildcard));
if (nsec) {
@@ -812,11 +812,10 @@ DatabaseClient::Finder::FindDNSSECContext::getDNSSECRRset(const Name& name,
isc_throw(DataSourceError, "no Finder to query");
}
const bool is_origin = isOrigin(name);
- bool is_nsec = isNSEC();
- WantedTypes final_types(is_nsec ? FINAL_TYPES() : FINAL_TYPES_NO_NSEC());
+ WantedTypes final_types(isNSEC() ? FINAL_TYPES() : FINAL_TYPES_NO_NSEC());
final_types.insert(type);
return (finderp_->getRRsets(name.toText(), final_types, !is_origin, NULL,
- type == RRType::ANY()));
+ type == RRType::ANY()));
}
bool
@@ -836,7 +835,7 @@ DatabaseClient::Finder::FindDNSSECContext::getResultFlags() {
return (RESULT_NSEC3_SIGNED);
} else {
// If it is a DNSSEC query and the zone is signed with NSEC, it should
- // return RESULT_NSEC_SIGNED, other else, return RESULT_DEFAULT
+ // return RESULT_NSEC_SIGNED, otherwise, return RESULT_DEFAULT
return (isNSEC() ? RESULT_NSEC_SIGNED : RESULT_DEFAULT);
}
}
diff --git a/src/lib/datasrc/database.h b/src/lib/datasrc/database.h
index 91e4941..7f7d1a4 100644
--- a/src/lib/datasrc/database.h
+++ b/src/lib/datasrc/database.h
@@ -693,7 +693,7 @@ public:
///
/// Get the ResultFlags for findInterval. If the zone is signed with
/// NSEC3, it will return RESULT_NSEC3_SIGNED. If it is signed with
- /// NSEC, it wll return RESULT_NSEC_SIGNED. Other else it will return
+ /// NSEC, it wll return RESULT_NSEC_SIGNED. Otherwise it will return
/// RESULT_DEFAULT. It wraps getRRsets function to do some special
/// search, like searching NSEC RRset by getNSECRRset function,
/// searching DNSSEC related RRset and RRsig by getNSECRRset.
@@ -753,17 +753,17 @@ public:
/// \brief Check whether the zone file is signed with NSECi3.
///
/// It checks whether the zone file is signed with NSEC3. If
- /// yes, return true, other else return false.
+ /// yes, return true, otherwise return false.
///
- /// \return True for NSEC3, false for other else.
+ /// \return True for NSEC3, false otherwise.
bool isNSEC3();
/// \brief Check whether the zone file is signed with NSEC.
///
/// It checks whether the zone file is signed with NSEC, If
- /// yes, return true, other else return false.
+ /// yes, return true, otherwise return false.
///
- /// \return True for NSEC, false for other else.
+ /// \return True for NSEC, false otherwise.
bool isNSEC();
/// \brief Check whether the name is origin name of the zone.
@@ -788,7 +788,8 @@ public:
/// It should init the attributes of this entity. Check whether
/// it is the NSEC or NSEC3 zone file if it is a dnssec query.
///
- /// \note If the entity is initalized, no need to init it again.
+ /// \note If the entity is initialized, no need to init it
+ /// again.
void init();
/// \brief Check whether the entity is initalized.
More information about the bind10-changes
mailing list