]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Changed NULL to 0 for FreeBSD build
authorFrancis Dupont <fdupont@isc.org>
Thu, 9 Feb 2017 22:31:01 +0000 (23:31 +0100)
committerFrancis Dupont <fdupont@isc.org>
Thu, 9 Feb 2017 22:31:01 +0000 (23:31 +0100)
src/lib/config/tests/command_mgr_unittests.cc

index ed77aa3c5699f2ec4cc5b958ed798a7198c55531..e73ebbb7bcda6ad09e5422f0949ca03a691dd2f5 100644 (file)
@@ -232,8 +232,8 @@ TEST_F(CommandMgrTest, handlerInstall) {
 
     // Check that it's not allowed to install NULL pointer instead of a real
     // command.
-    EXPECT_THROW(CommandMgr::instance().registerCommand("my-command",
-                 NULL), InvalidCommandHandler);
+    EXPECT_THROW(CommandMgr::instance().registerCommand("my-command", 0),
+                 InvalidCommandHandler);
 
     // This registration should succeed.
     EXPECT_NO_THROW(CommandMgr::instance().registerCommand("my-command",