BIND 10 trac1976-cont-3, updated. 6adec616524f9cc43a399d58f38d14907b19cc79 [1976] Add some static casts to fix compile errors

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Jul 16 07:05:32 UTC 2012


The branch, trac1976-cont-3 has been updated
       via  6adec616524f9cc43a399d58f38d14907b19cc79 (commit)
      from  eecbfe1f68e76f43ee01105112a5f4e7fc99006d (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 6adec616524f9cc43a399d58f38d14907b19cc79
Author: Mukund Sivaraman <muks at isc.org>
Date:   Mon Jul 16 12:35:03 2012 +0530

    [1976] Add some static casts to fix compile errors

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

Summary of changes:
 src/lib/datasrc/tests/client_list_unittest.cc |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/tests/client_list_unittest.cc b/src/lib/datasrc/tests/client_list_unittest.cc
index 0bfc6cb..b77d089 100644
--- a/src/lib/datasrc/tests/client_list_unittest.cc
+++ b/src/lib/datasrc/tests/client_list_unittest.cc
@@ -763,7 +763,8 @@ TEST_F(ListTest, masterFiles) {
     list_->configure(elem, true);
 
     // It has only the cache
-    EXPECT_EQ(NULL, list_->getDataSources()[0].data_src_client_);
+    EXPECT_EQ(static_cast<isc::datasrc::DataSourceClient*>(NULL),
+              list_->getDataSources()[0].data_src_client_);
 
     // And it can search
     positiveResult(list_->find(Name(".")), ds_[0], Name("."), true, "com",
@@ -821,9 +822,12 @@ TEST_F(ListTest, reloadNoSuchZone) {
     EXPECT_EQ(ConfigurableClientList::ZONE_NOT_FOUND,
               list_->reload(Name("sub.example.com")));
     // Nothing changed here - these zones don't exist
-    EXPECT_EQ(NULL, list_->find(name).dsrc_client_);
-    EXPECT_EQ(NULL, list_->find(Name("example.cz")).dsrc_client_);
-    EXPECT_EQ(NULL, list_->find(Name("sub.example.com"), true).dsrc_client_);
+    EXPECT_EQ(static_cast<isc::datasrc::DataSourceClient*>(NULL),
+              list_->find(name).dsrc_client_);
+    EXPECT_EQ(static_cast<isc::datasrc::DataSourceClient*>(NULL),
+              list_->find(Name("example.cz")).dsrc_client_);
+    EXPECT_EQ(static_cast<isc::datasrc::DataSourceClient*>(NULL),
+              list_->find(Name("sub.example.com"), true).dsrc_client_);
     // Not reloaded
     EXPECT_EQ(ZoneFinder::NXRRSET,
               list_->find(Name("example.com")).finder_->



More information about the bind10-changes mailing list