mirror of https://github.com/Icinga/icinga2.git
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;
|
||||
string key;
|
||||
long index = GetLength();
|
||||
do {
|
||||
long index = GetLength();
|
||||
|
||||
stringstream s;
|
||||
s << "_" << GetLength();
|
||||
s << "_" << index;
|
||||
index++;
|
||||
|
||||
key = s.str();
|
||||
it = m_Data.find(key);
|
||||
|
|
|
@ -24,7 +24,7 @@ using namespace icinga;
|
|||
string VirtualEndpoint::GetAddress(void) const
|
||||
{
|
||||
char address[50];
|
||||
sprintf(address, "virtual:%p", this);
|
||||
sprintf(address, "virtual:%p", (void *)this);
|
||||
return address;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue