BIND 10 trac553, updated. ce7bc899e76309c63b1ad270b9474fdc1407cf5e [trac553] minor style fixes: position of '*', avoid implicit conversion to bool.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Feb 17 19:13:59 UTC 2011


The branch, trac553 has been updated
       via  ce7bc899e76309c63b1ad270b9474fdc1407cf5e (commit)
      from  e26d533eb62f553fcbae616d82e84e3784f750c6 (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 ce7bc899e76309c63b1ad270b9474fdc1407cf5e
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Thu Feb 17 11:13:38 2011 -0800

    [trac553] minor style fixes: position of '*', avoid implicit conversion to bool.

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

Summary of changes:
 src/lib/datasrc/tests/memory_datasrc_unittest.cc |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/tests/memory_datasrc_unittest.cc b/src/lib/datasrc/tests/memory_datasrc_unittest.cc
index ef0886e..3f161ae 100644
--- a/src/lib/datasrc/tests/memory_datasrc_unittest.cc
+++ b/src/lib/datasrc/tests/memory_datasrc_unittest.cc
@@ -825,7 +825,7 @@ TEST_F(MemoryZoneTest, nestedEmptyWildcard) {
     }
 
     // Domains to test
-    const char *names[] = {
+    const char* names[] = {
         "*.foo.*.bar.example.org",
         "foo.*.bar.example.org",
         "*.bar.example.org",
@@ -836,7 +836,7 @@ TEST_F(MemoryZoneTest, nestedEmptyWildcard) {
     {
         SCOPED_TRACE("Asking directly for A on parent nodes");
 
-        for (const char **name(names); *name; ++ name) {
+        for (const char** name(names); *name != NULL; ++ name) {
             SCOPED_TRACE(string("Node ") + *name);
             findTest(Name(*name), RRType::A(), Zone::NXRRSET);
         }
@@ -845,7 +845,7 @@ TEST_F(MemoryZoneTest, nestedEmptyWildcard) {
     {
         SCOPED_TRACE("Asking for ANY on parent nodes");
 
-        for (const char **name(names); *name; ++ name) {
+        for (const char** name(names); *name != NULL; ++ name) {
             SCOPED_TRACE(string("Node ") + *name);
 
             RRsetList target;
@@ -880,14 +880,14 @@ MemoryZoneTest::doCancelWildcardTest() {
     {
         SCOPED_TRACE("Neighbor wildcards to foo.example.org");
 
-        const char *names[] = {
+        const char* names[] = {
             "aaa.bbb.wild.example.org",
             "aaa.zzz.wild.example.org",
             "zzz.wild.example.org",
             NULL
         };
 
-        for (const char **name(names); *name; ++ name) {
+        for (const char** name(names); *name != NULL; ++ name) {
             SCOPED_TRACE(string("Node ") + *name);
 
             findTest(Name(*name), RRType::A(), Zone::SUCCESS, false, rr_wild_,




More information about the bind10-changes mailing list