Module: sems Branch: master Commit: 36c9cb21db360a0249fe56b9c6b8a7b1f41aaa35 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=36c9cb21db360a0249fe56b9c6b8a7b1f41aaa35
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Oct 17 17:04:29 2011 +0200 make callgen example compile --- apps/examples/call_gen/CallGen.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/examples/call_gen/CallGen.cpp b/apps/examples/call_gen/CallGen.cpp index 657872c..b325aa6 100644 --- a/apps/examples/call_gen/CallGen.cpp +++ b/apps/examples/call_gen/CallGen.cpp @@ -144,7 +144,7 @@ void CallGenFactory::checkTarget() { if (!target_args) return; - DBG("%d active calls, %d current target, %d already scheduled\n", + DBG("%zd active calls, %d current target, %d already scheduled\n", active_calls.size(), target_args->get(0).asInt(), scheduled); int missing_calls = @@ -332,12 +332,12 @@ void CallGenFactory::callGenStats(const AmArg& args, AmArg& ret) { target = target_args->get(0).asInt(); string res = "CallGen statistics: \n " + - int2str(active_calls.size()) + " active calls\n " + + int2str((unsigned int)active_calls.size()) + " active calls\n " + int2str(target) + " current target\n " + int2str(scheduled) +" scheduled\n "; calls_list_mut.lock(); - res += int2str(past_calls.size()) + " total calls\n "; + res += int2str((unsigned int)past_calls.size()) + " total calls\n "; calls_list_mut.unlock(); ret.push(res.c_str()); } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
