Fixed more compilation warnings.

This commit is contained in:
Gunnar Beutner 2012-05-10 13:17:15 +02:00
parent c96fc41efd
commit 0c8932d2d9
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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;
}