Build fix for FreeBSD.

This commit is contained in:
Gunnar Beutner 2013-01-24 20:49:55 +01:00
parent cd30cb48c8
commit 0d15141c7d
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ void HostGroup::ValidateMembersCache(void)
Value hostgroup;
BOOST_FOREACH(tie(tuples::ignore, hostgroup), dict) {
if (!HostGroup::Exists(hostgroup))
Logger::Write(LogWarning, "icinga", "Host group '" + hostgroup + "' used but not defined.");
Logger::Write(LogWarning, "icinga", "Host group '" + static_cast<String>(hostgroup) + "' used but not defined.");
m_MembersCache[hostgroup].push_back(host->GetName());
}

View File

@ -108,7 +108,7 @@ void ServiceGroup::ValidateMembersCache(void)
Value servicegroup;
BOOST_FOREACH(tie(tuples::ignore, servicegroup), dict) {
if (!ServiceGroup::Exists(servicegroup))
Logger::Write(LogWarning, "icinga", "Service group '" + servicegroup + "' used but not defined.");
Logger::Write(LogWarning, "icinga", "Service group '" + static_cast<String>(servicegroup) + "' used but not defined.");
m_MembersCache[servicegroup].push_back(service->GetName());
}