Module: sems
Branch: master
Commit: 755a6e530c45b7bb5ebb3389a96e47071fd9ac29
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=755a6e530c45b7bb5ebb3389a96e47071fd9ac29

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Mon Mar  4 11:59:45 2013 +0100

c/f: explicit cast to avoid warnings about size_t length on 32bits systems

---

 core/AmB2BMedia.cpp        |    2 +-
 core/AmEventDispatcher.cpp |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/core/AmB2BMedia.cpp b/core/AmB2BMedia.cpp
index 5fa9346..b42ae14 100644
--- a/core/AmB2BMedia.cpp
+++ b/core/AmB2BMedia.cpp
@@ -780,7 +780,7 @@ void AmB2BMedia::replaceConnectionAddress(AmSdp 
&parser_sdp, bool a_leg, const s
     // FIXME: create new streams here?
     WARN("trying to relay SDP with more media lines than "
         "relay streams initialized (%lu)\n", 
-        audio.size()+relay_streams.size());
+        (unsigned long)(audio.size()+relay_streams.size()));
   }
 
   DBG("replaced connection address in SDP with %s:%s.\n",
diff --git a/core/AmEventDispatcher.cpp b/core/AmEventDispatcher.cpp
index d3652a1..70f407c 100644
--- a/core/AmEventDispatcher.cpp
+++ b/core/AmEventDispatcher.cpp
@@ -239,7 +239,8 @@ void AmEventDispatcher::dump()
     for (size_t i=0;i<EVENT_DISPATCHER_BUCKETS;i++) {
       queues_mut[i].lock();
       if(!queues[i].empty()) {
-       DBG("queues[%lu].size() = %lu",i,queues[i].size());
+       DBG("queues[%lu].size() = %lu",
+           (unsigned long)i,(unsigned long)queues[i].size());
        for(EvQueueMapIter it = queues[i].begin();
            it != queues[i].end(); it++){
          DBG("\t%s -> %p\n",it->first.c_str(),it->second.q);
@@ -249,7 +250,8 @@ void AmEventDispatcher::dump()
 
       id_lookup_mut[i].lock();
       if(!id_lookup[i].empty()) {
-       DBG("id_lookup[%lu].size() = %lu",i,id_lookup[i].size());
+       DBG("id_lookup[%lu].size() = %lu",
+           (unsigned long)i,(unsigned long)id_lookup[i].size());
       }
       id_lookup_mut[i].unlock();
     }

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to