BIND 10 trac2151, updated. 73291cf04175391585c0222f302150d9bc66a61c [2151] change name to LabelSequence::WILDCARD
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Sep 11 10:20:02 UTC 2012
The branch, trac2151 has been updated
via 73291cf04175391585c0222f302150d9bc66a61c (commit)
from ed1a5d91d8ca0826a6c6370abfa511c052b60c24 (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 73291cf04175391585c0222f302150d9bc66a61c
Author: Jelte Jansen <jelte at isc.org>
Date: Tue Sep 11 12:19:46 2012 +0200
[2151] change name to LabelSequence::WILDCARD
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/labelsequence.h | 4 ++--
src/lib/dns/tests/labelsequence_unittest.cc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/labelsequence.h b/src/lib/dns/labelsequence.h
index b910550..3f6a03a 100644
--- a/src/lib/dns/labelsequence.h
+++ b/src/lib/dns/labelsequence.h
@@ -58,7 +58,7 @@ public:
///
//@{
/// Wildcard label ("*")
- static const LabelSequence& WILDCARD_LABEL();
+ static const LabelSequence& WILDCARD();
//@}
/// \brief Constructs a LabelSequence for the given name
@@ -419,7 +419,7 @@ std::ostream&
operator<<(std::ostream& os, const LabelSequence& label_sequence);
inline const LabelSequence&
-LabelSequence::WILDCARD_LABEL() {
+LabelSequence::WILDCARD() {
static const uint8_t wildcard_buf[4] = { 0x01, 0x00, 0x01, '*' };
static const LabelSequence wild_ls(wildcard_buf);
return (wild_ls);
diff --git a/src/lib/dns/tests/labelsequence_unittest.cc b/src/lib/dns/tests/labelsequence_unittest.cc
index 06092c0..b7463b2 100644
--- a/src/lib/dns/tests/labelsequence_unittest.cc
+++ b/src/lib/dns/tests/labelsequence_unittest.cc
@@ -1176,8 +1176,8 @@ TEST_F(ExtendableLabelSequenceTest, extendBadData) {
// Check the static fixed 'wildcard' LabelSequence
TEST(WildCardLabelSequence, wildcard) {
- ASSERT_FALSE(LabelSequence::WILDCARD_LABEL().isAbsolute());
- ASSERT_EQ("*", LabelSequence::WILDCARD_LABEL().toText());
+ ASSERT_FALSE(LabelSequence::WILDCARD().isAbsolute());
+ ASSERT_EQ("*", LabelSequence::WILDCARD().toText());
}
}
More information about the bind10-changes
mailing list