BIND 10 trac1130, updated. c4131b7a0c4a6d666a35847f8cce3d099b7a9949 [1130] a couple of style fixes

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Aug 15 13:22:50 UTC 2011


The branch, trac1130 has been updated
       via  c4131b7a0c4a6d666a35847f8cce3d099b7a9949 (commit)
      from  253d1fc351fffc8a0b1d325044854a2defdd7223 (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 c4131b7a0c4a6d666a35847f8cce3d099b7a9949
Author: Jelte Jansen <jelte at isc.org>
Date:   Mon Aug 15 15:22:06 2011 +0200

    [1130] a couple of style fixes

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

Summary of changes:
 src/lib/dns/rdata/generic/naptr_35.cc |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/rdata/generic/naptr_35.cc b/src/lib/dns/rdata/generic/naptr_35.cc
index ede110b..5268331 100644
--- a/src/lib/dns/rdata/generic/naptr_35.cc
+++ b/src/lib/dns/rdata/generic/naptr_35.cc
@@ -39,7 +39,7 @@ namespace {
 /// \param input_iterator From which the skipping started
 void
 skipLeftSpaces(const std::string& input_str,
-                    std::string::const_iterator& input_iterator)
+               std::string::const_iterator& input_iterator)
 {
     if (input_iterator >= input_str.end()) {
         isc_throw(InvalidRdataText,
@@ -48,7 +48,7 @@ skipLeftSpaces(const std::string& input_str,
 
     if (!isspace(*input_iterator)) {
         isc_throw(InvalidRdataText,
-                  "Invalid NAPTR text format, fields are not separated by space.");
+            "Invalid NAPTR text format, fields are not separated by space.");
     }
     // Skip white spaces
     while (input_iterator < input_str.end() && isspace(*input_iterator)) {
@@ -65,7 +65,7 @@ skipLeftSpaces(const std::string& input_str,
 /// \return A std::string that contains the extracted <character-string>
 std::string
 getNextCharacterString(const std::string& input_str,
-                              std::string::const_iterator& input_iterator)
+                       std::string::const_iterator& input_iterator)
 {
     string result;
 
@@ -76,15 +76,15 @@ getNextCharacterString(const std::string& input_str,
                   <character-string> field is missing.");
     }
 
-    // Whether the <character-string> is seperated with doulble quotes symbol(")
-    bool quotes_seperated = (*input_iterator == '"');
+    // Whether the <character-string> is separated with double quotes (")
+    bool quotes_separated = (*input_iterator == '"');
 
-    if (quotes_seperated) {
+    if (quotes_separated) {
         ++input_iterator;
     }
 
     while(input_iterator < input_str.end()){
-        if (quotes_seperated) {
+        if (quotes_separated) {
             // If the <character-string> is seperated with quotes symbol and
             // another quotes symbol is encountered, it is the end of the
             // <character-string>
@@ -129,7 +129,7 @@ getNextCharacterString(InputBuffer& buffer, size_t len) {
     return (string(buf, buf + str_len));
 }
 
-} // Anonymouse namespace
+} // Anonymous namespace
 
 NAPTR::NAPTR(InputBuffer& buffer, size_t len):
     replacement_(".")




More information about the bind10-changes mailing list