BIND 10 master, updated. eaa492e0bfa0855b01ec86ed0885d90166d32c7e [master] changed the return value of findNSECCover() from RRsetPtr to ConstRRsetptr. This will fix build failure due to the mixture of these in ?:. (and in any event when we can make something const that's generally good to do)
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Dec 9 16:58:34 UTC 2011
The branch, master has been updated
via eaa492e0bfa0855b01ec86ed0885d90166d32c7e (commit)
from 95b7c29f155b8fa21cf85c6d3afbe3f510db83d1 (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 eaa492e0bfa0855b01ec86ed0885d90166d32c7e
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Fri Dec 9 08:56:38 2011 -0800
[master] changed the return value of findNSECCover() from RRsetPtr to ConstRRsetptr.
This will fix build failure due to the mixture of these in ?:. (and in any
event when we can make something const that's generally good to do)
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/database.cc | 4 ++--
src/lib/datasrc/database.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/database.cc b/src/lib/datasrc/database.cc
index 5de303b..6e0b02b 100644
--- a/src/lib/datasrc/database.cc
+++ b/src/lib/datasrc/database.cc
@@ -352,7 +352,7 @@ FINAL_TYPES() {
}
-RRsetPtr
+ConstRRsetPtr
DatabaseClient::Finder::findNSECCover(const Name& name) {
try {
// Which one should contain the NSEC record?
@@ -387,7 +387,7 @@ DatabaseClient::Finder::findNSECCover(const Name& name) {
arg(accessor_->getDBName()).arg(name);
}
// We didn't find it, return nothing
- return (RRsetPtr());
+ return (ConstRRsetPtr());
}
DatabaseClient::Finder::DelegationSearchResult
diff --git a/src/lib/datasrc/database.h b/src/lib/datasrc/database.h
index 7b94735..c1b71cd 100644
--- a/src/lib/datasrc/database.h
+++ b/src/lib/datasrc/database.h
@@ -1037,7 +1037,7 @@ public:
/// This one calls findPreviousName on the given name and extracts an
/// NSEC record on the result. It handles various error cases. The
/// method exists to share code present at more than one location.
- dns::RRsetPtr findNSECCover(const dns::Name& name);
+ dns::ConstRRsetPtr findNSECCover(const dns::Name& name);
/// \brief Convenience type shortcut.
///
More information about the bind10-changes
mailing list