mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Fixed more compilation warnings.
This commit is contained in:
parent
c96fc41efd
commit
0c8932d2d9
@ -255,11 +255,11 @@ void Dictionary::AddUnnamedProperty(const Variant& value)
|
|||||||
{
|
{
|
||||||
map<string, Variant>::const_iterator it;
|
map<string, Variant>::const_iterator it;
|
||||||
string key;
|
string key;
|
||||||
do {
|
|
||||||
long index = GetLength();
|
long index = GetLength();
|
||||||
|
do {
|
||||||
stringstream s;
|
stringstream s;
|
||||||
s << "_" << GetLength();
|
s << "_" << index;
|
||||||
|
index++;
|
||||||
|
|
||||||
key = s.str();
|
key = s.str();
|
||||||
it = m_Data.find(key);
|
it = m_Data.find(key);
|
||||||
|
@ -24,7 +24,7 @@ using namespace icinga;
|
|||||||
string VirtualEndpoint::GetAddress(void) const
|
string VirtualEndpoint::GetAddress(void) const
|
||||||
{
|
{
|
||||||
char address[50];
|
char address[50];
|
||||||
sprintf(address, "virtual:%p", this);
|
sprintf(address, "virtual:%p", (void *)this);
|
||||||
return address;
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user