]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] explicit cast NULL in EXPECT_EQ; some compilers bare NULL.
authorJINMEI Tatuya <jinmei@isc.org>
Sat, 25 Aug 2012 05:10:34 +0000 (05:10 +0000)
committerJINMEI Tatuya <jinmei@isc.org>
Sat, 25 Aug 2012 05:10:34 +0000 (05:10 +0000)
this fixes build failure reported at:
http://git.bind10.isc.org/~tester/builder//BIND10/20120825015000-Solaris10-sparc-Sunstudio/logs/build.out

src/lib/datasrc/memory/tests/zone_table_unittest.cc

index 8078a9b2f29ce46448faab92b9c22a829f333de6..4f0af5e7d1f2590805d228a81f6aa6153d1b030f 100644 (file)
@@ -123,7 +123,8 @@ TEST_F(ZoneTableTest, findZone) {
 
     EXPECT_EQ(result::NOTFOUND,
               zone_table->findZone(Name("example.org")).code);
-    EXPECT_EQ(NULL, zone_table->findZone(Name("example.org")).zone_data);
+    EXPECT_EQ(static_cast<ZoneData*>(NULL),
+              zone_table->findZone(Name("example.org")).zone_data);
 
     // there's no exact match.  the result should be the longest match,
     // and the code should be PARTIALMATCH.