]> granicus.if.org Git - icinga2/commitdiff
More Win64 build fixes.
authorGunnar Beutner <gunnar@beutner.name>
Thu, 10 Oct 2013 21:46:45 +0000 (23:46 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 10 Oct 2013 21:46:45 +0000 (23:46 +0200)
components/cluster/clusterlistener.cpp
lib/db_ido/dbconnection.cpp
lib/db_ido/servicedbobject.cpp

index 1a85d899af2014e691e59ffe2d940ae9a27bca04..fb6af61173be1760e04b642ccc52e3a807519bf5 100644 (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>();
        params->Set("identity", GetIdentity());
index a87b2077c317b3d5f853a7f780bea3b775568b66..7345a993bd1d75e3138381860e3229100e631a99 100644 (file)
@@ -112,10 +112,10 @@ void DbConnection::ProgramStatusHandler(void)
        query3.WhereCriteria->Set("instance_id", 0);  /* DbConnection class fills in real ID */
        DbObject::OnQuery(query3);
 
-       InsertRuntimeVariable("total_services", DynamicType::GetObjects<Service>().size());
-       InsertRuntimeVariable("total_scheduled_services", DynamicType::GetObjects<Service>().size());
-       InsertRuntimeVariable("total_hosts", DynamicType::GetObjects<Host>().size());
-       InsertRuntimeVariable("total_scheduled_hosts", DynamicType::GetObjects<Host>().size());
+       InsertRuntimeVariable("total_services", static_cast<long>(DynamicType::GetObjects<Service>().size()));
+       InsertRuntimeVariable("total_scheduled_services", static_cast<long>(DynamicType::GetObjects<Service>().size()));
+       InsertRuntimeVariable("total_hosts", static_cast<long>(DynamicType::GetObjects<Host>().size()));
+       InsertRuntimeVariable("total_scheduled_hosts", static_cast<long>(DynamicType::GetObjects<Host>().size()));
 }
 
 void DbConnection::CleanUpHandler(void)
index 391925c2e9542ec0f51b6d3196dd9fa460db9b5f..d62c23eadca3b53688c4a1334163725af2ccc7e6 100644 (file)
@@ -885,7 +885,7 @@ void ServiceDbObject::AddNotificationHistory(const Service::Ptr& service, const
        }
 
        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 */
 
        query1.Fields = fields1;