BIND 10 trac2053, updated. b945fd1c9eee6fd70016a24b547426e1633faf8f [2053] style fixes: constify, long line

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jul 3 07:28:20 UTC 2012


The branch, trac2053 has been updated
       via  b945fd1c9eee6fd70016a24b547426e1633faf8f (commit)
      from  efb3f3344d624ca830d07798948e01f07e118820 (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 b945fd1c9eee6fd70016a24b547426e1633faf8f
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Mon Jul 2 12:10:56 2012 -0700

    [2053] style fixes: constify, long line

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

Summary of changes:
 src/lib/dns/labelsequence.cc |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/labelsequence.cc b/src/lib/dns/labelsequence.cc
index 1e18378..c1db000 100644
--- a/src/lib/dns/labelsequence.cc
+++ b/src/lib/dns/labelsequence.cc
@@ -129,8 +129,9 @@ LabelSequence::toText(bool omit_final_dot) const {
     }
 
     Name::NameString::const_iterator np = name_.ndata_.begin();
-    Name::NameString::const_iterator np_end = name_.ndata_.end();
-    unsigned int labels = last_label_ - first_label_; // use for integrity check
+    const Name::NameString::const_iterator np_end = name_.ndata_.end();
+    // use for integrity check
+    unsigned int labels = last_label_ - first_label_;
     // init with an impossible value to catch error cases in the end:
     unsigned int count = Name::MAX_LABELLEN + 1;
 
@@ -169,7 +170,7 @@ LabelSequence::toText(bool omit_final_dot) const {
             }
 
             while (count-- > 0) {
-                uint8_t c = *np++;
+                const uint8_t c = *np++;
                 switch (c) {
                 case 0x22: // '"'
                 case 0x28: // '('



More information about the bind10-changes mailing list