]> granicus.if.org Git - icinga2/commitdiff
Build fix for OS X.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Apr 2012 09:58:05 +0000 (11:58 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Apr 2012 09:58:05 +0000 (11:58 +0200)
configrpccomponent/configrpccomponent.cpp

index 08317cdb02809687b2cde1aeb804e173e7e62de9..1c6803554ee10adb070829c05b88ffb4e067dad8 100644 (file)
@@ -97,7 +97,7 @@ int ConfigRpcComponent::LocalObjectCreatedHandler(ConfigObjectEventArgs::Ptr ea)
 
        if (replicate) {
                EndpointManager::Ptr mgr = GetIcingaApplication()->GetEndpointManager();
-               mgr->SendMessage(m_ConfigRpcEndpoint, NULL, MakeObjectMessage(object, "config::ObjectCreated", true));
+               mgr->SendMessage(m_ConfigRpcEndpoint, Endpoint::Ptr(), MakeObjectMessage(object, "config::ObjectCreated", true));
        }
 
        return 0;
@@ -112,7 +112,7 @@ int ConfigRpcComponent::LocalObjectRemovedHandler(ConfigObjectEventArgs::Ptr ea)
 
        if (replicate) {
                EndpointManager::Ptr mgr = GetIcingaApplication()->GetEndpointManager();
-               mgr->SendMessage(m_ConfigRpcEndpoint, NULL, MakeObjectMessage(object, "config::ObjectRemoved", false));
+               mgr->SendMessage(m_ConfigRpcEndpoint, Endpoint::Ptr(), MakeObjectMessage(object, "config::ObjectRemoved", false));
        }
 
        return 0;
@@ -138,7 +138,7 @@ int ConfigRpcComponent::LocalPropertyChangedHandler(ConfigObjectEventArgs::Ptr e
                cJSON_AddStringToObject(properties, ea->Property.c_str(), value.c_str());
 
                EndpointManager::Ptr mgr = GetIcingaApplication()->GetEndpointManager();
-               mgr->SendMessage(m_ConfigRpcEndpoint, NULL, msg);
+               mgr->SendMessage(m_ConfigRpcEndpoint, Endpoint::Ptr(), msg);
        }
 
        return 0;