More Win64 build fixes.

This commit is contained in:
Gunnar Beutner 2013-10-10 23:46:45 +02:00
parent cafc84d480
commit 8409b55018
3 changed files with 6 additions and 6 deletions

View File

@ -575,7 +575,7 @@ void ClusterListener::NewClientHandler(const Socket::Ptr& client, TlsRole role)
} }
} }
Log(LogInformation, "cluster", "Sending " + Convert::ToString(config->GetLength()) + " config files to endpoint '" + endpoint->GetName() + "'."); Log(LogInformation, "cluster", "Sending " + Convert::ToString(static_cast<long>(config->GetLength())) + " config files to endpoint '" + endpoint->GetName() + "'.");
Dictionary::Ptr params = boost::make_shared<Dictionary>(); Dictionary::Ptr params = boost::make_shared<Dictionary>();
params->Set("identity", GetIdentity()); params->Set("identity", GetIdentity());

View File

@ -112,10 +112,10 @@ void DbConnection::ProgramStatusHandler(void)
query3.WhereCriteria->Set("instance_id", 0); /* DbConnection class fills in real ID */ query3.WhereCriteria->Set("instance_id", 0); /* DbConnection class fills in real ID */
DbObject::OnQuery(query3); DbObject::OnQuery(query3);
InsertRuntimeVariable("total_services", DynamicType::GetObjects<Service>().size()); InsertRuntimeVariable("total_services", static_cast<long>(DynamicType::GetObjects<Service>().size()));
InsertRuntimeVariable("total_scheduled_services", DynamicType::GetObjects<Service>().size()); InsertRuntimeVariable("total_scheduled_services", static_cast<long>(DynamicType::GetObjects<Service>().size()));
InsertRuntimeVariable("total_hosts", DynamicType::GetObjects<Host>().size()); InsertRuntimeVariable("total_hosts", static_cast<long>(DynamicType::GetObjects<Host>().size()));
InsertRuntimeVariable("total_scheduled_hosts", DynamicType::GetObjects<Host>().size()); InsertRuntimeVariable("total_scheduled_hosts", static_cast<long>(DynamicType::GetObjects<Host>().size()));
} }
void DbConnection::CleanUpHandler(void) void DbConnection::CleanUpHandler(void)

View File

@ -885,7 +885,7 @@ void ServiceDbObject::AddNotificationHistory(const Service::Ptr& service, const
} }
fields1->Set("escalated", 0); fields1->Set("escalated", 0);
fields1->Set("contacts_notified", users.size()); fields1->Set("contacts_notified", static_cast<long>(users.size()));
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */ fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
query1.Fields = fields1; query1.Fields = fields1;