Fixed dependency problem.

This commit is contained in:
Gunnar Beutner 2012-04-02 16:25:43 +02:00
parent 7e1add815b
commit f890f1d42c
2 changed files with 2 additions and 4 deletions

View File

@ -44,6 +44,7 @@ libbase_la_SOURCES = \
win32.h
libbase_la_LIBADD=$(LIBLTDL)
libbase_la_LDFLAGS=-pthread
AM_CFLAGS=$(LTDLINCL)
AM_CXXFLAGS=$(LTDLINCL)

View File

@ -4,7 +4,7 @@ using namespace icinga;
IcingaApplication::RefType ConfigRpcComponent::GetIcingaApplication(void)
{
return dynamic_pointer_cast<IcingaApplication>(GetApplication());
return static_pointer_cast<IcingaApplication>(GetApplication());
}
string ConfigRpcComponent::GetName(void)
@ -16,9 +16,6 @@ void ConfigRpcComponent::Start(void)
{
IcingaApplication::RefType icingaApp = GetIcingaApplication();
if (icingaApp.get() == NULL)
throw exception(/*"Component loaded by incompatible application."*/);
ConnectionManager::RefType connectionManager = icingaApp->GetConnectionManager();
ConfigHive::RefType configHive = icingaApp->GetConfigHive();