diff --git a/apps/reg_agent/RegistrationAgent.cpp b/apps/reg_agent/RegistrationAgent.cpp index 44195bbc..6e119996 100644 --- a/apps/reg_agent/RegistrationAgent.cpp +++ b/apps/reg_agent/RegistrationAgent.cpp @@ -180,7 +180,7 @@ void RegThread::run() { it != registrations.end(); it++) { if (!check_registration(*it)) { DBG("Registration %d does not exist or timeout. Creating registration.\n", - it - registrations.begin()); + (int)(it - registrations.begin())); create_registration(*it); } } diff --git a/core/AmCallWatcher.cpp b/core/AmCallWatcher.cpp index 1f60125c..dc8da65c 100644 --- a/core/AmCallWatcher.cpp +++ b/core/AmCallWatcher.cpp @@ -128,7 +128,7 @@ void AmCallWatcher::process(AmEvent* ev) { soft_states_mut.unlock(); DBG("moved call state '%s' to soft-state map (%u states, %u soft-states)\n", - csu->get_call_id().c_str(), s_size, soft_size); + csu->get_call_id().c_str(), (unsigned int) s_size, (unsigned int)soft_size); } else { DBG("received obsolete event for inexistent call '%s'\n", @@ -169,7 +169,7 @@ CallStatus* AmCallWatcher::getStatus(const string& call_id) { res = it->second.first; soft_states.erase(it); DBG("erased call state '%s' (%u in list).\n", - call_id.c_str(), soft_states.size()); + call_id.c_str(), (unsigned int)soft_states.size()); } else { DBG("state for call '%s' not found.\n", call_id.c_str()); @@ -198,7 +198,7 @@ void AmCallWatcherGarbageCollector::run() { } if (erased){ DBG("cleared old soft-states (%u soft-states remaining)\n", - garbage.size()); + (unsigned int)garbage.size()); } mut.unlock(); }