[svn] commit: r4155 - /branches/trac458/src/bin/auth/tests/query_unittest.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jan 4 18:35:10 UTC 2011


Author: vorner
Date: Tue Jan  4 18:35:09 2011
New Revision: 4155

Log:
Minor codestyle fixes

Modified:
    branches/trac458/src/bin/auth/tests/query_unittest.cc

Modified: branches/trac458/src/bin/auth/tests/query_unittest.cc
==============================================================================
--- branches/trac458/src/bin/auth/tests/query_unittest.cc (original)
+++ branches/trac458/src/bin/auth/tests/query_unittest.cc Tue Jan  4 18:35:09 2011
@@ -127,19 +127,19 @@
     } else if (name == Name("www.example.com")) {
         return (FindResult(NXRRSET, RRsetPtr()));
     } else if (name == Name("glue.ns.example.com") && type == RRType::A() &&
-        (options & FIND_GLUE_OK)) {
+        (options & FIND_GLUE_OK) != 0) {
         return (FindResult(SUCCESS, glue_a_rrset));
     } else if (name == Name("noglue.example.com") && type == RRType::A()) {
         return (FindResult(SUCCESS, noglue_a_rrset));
     } else if (name == Name("glue.ns.example.com") && type == RRType::AAAA() &&
-        (options & FIND_GLUE_OK)) {
+        (options & FIND_GLUE_OK) != 0) {
         return (FindResult(SUCCESS, glue_aaaa_rrset));
     } else if (name == Name("example.com") && type == RRType::SOA() &&
         has_SOA_)
     {
         return (FindResult(SUCCESS, soa_rrset));
     } else if (name == Name("mx.delegation.example.com") &&
-        type == RRType::A() && (options & FIND_GLUE_OK))
+        type == RRType::A() && (options & FIND_GLUE_OK) != 0)
     {
         return (FindResult(SUCCESS, delegated_mx_a_rrset));
     } else if (name == Name("delegation.example.com") ||
@@ -155,7 +155,7 @@
         return (FindResult(NXRRSET, RRsetPtr()));
     } else if ((name == Name("cname.example.com"))) {
         return (FindResult(CNAME, cname_rrset));
-    } else if ((name == Name("cnamemailer.example.com"))) {
+    } else if (name == Name("cnamemailer.example.com")) {
         return (FindResult(CNAME, mx_cname_rrset_));
     } else if (name == Name("mx.example.com")) {
         return (FindResult(SUCCESS, mx_rrset_));
@@ -304,7 +304,7 @@
         Message::SECTION_ADDITIONAL)); ai != response.endSection(
         Message::SECTION_ADDITIONAL); ++ai)
     {
-        additional_count++;
+        ++additional_count;
         EXPECT_EQ(Name("www.example.com"), (*ai)->getName());
         EXPECT_EQ(RRType::A(), (*ai)->getType());
     }




More information about the bind10-changes mailing list