From 2daf66f03682ebd71cceae0f5b5c7167b2a8cae1 Mon Sep 17 00:00:00 2001 From: russell Date: Sat, 20 Mar 2010 11:43:08 +0000 Subject: Resolve compiler warnings on FreeBSD. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@253538 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_dial.c | 4 ++-- apps/app_followme.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/app_dial.c b/apps/app_dial.c index cff55aff5..d6430beba 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1570,12 +1570,12 @@ static void end_bridge_callback(void *data) ast_channel_lock(chan); if (chan->cdr->answer.tv_sec) { - snprintf(buf, sizeof(buf), "%ld", end - chan->cdr->answer.tv_sec); + snprintf(buf, sizeof(buf), "%ld", (long) end - chan->cdr->answer.tv_sec); pbx_builtin_setvar_helper(chan, "ANSWEREDTIME", buf); } if (chan->cdr->start.tv_sec) { - snprintf(buf, sizeof(buf), "%ld", end - chan->cdr->start.tv_sec); + snprintf(buf, sizeof(buf), "%ld", (long) end - chan->cdr->start.tv_sec); pbx_builtin_setvar_helper(chan, "DIALEDTIME", buf); } ast_channel_unlock(chan); diff --git a/apps/app_followme.c b/apps/app_followme.c index 11bffaabe..b6ad76705 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -990,12 +990,12 @@ static void end_bridge_callback(void *data) ast_channel_lock(chan); if (chan->cdr->answer.tv_sec) { - snprintf(buf, sizeof(buf), "%ld", end - chan->cdr->answer.tv_sec); + snprintf(buf, sizeof(buf), "%ld", (long) end - chan->cdr->answer.tv_sec); pbx_builtin_setvar_helper(chan, "ANSWEREDTIME", buf); } if (chan->cdr->start.tv_sec) { - snprintf(buf, sizeof(buf), "%ld", end - chan->cdr->start.tv_sec); + snprintf(buf, sizeof(buf), "%ld", (long) end - chan->cdr->start.tv_sec); pbx_builtin_setvar_helper(chan, "DIALEDTIME", buf); } ast_channel_unlock(chan); -- cgit v1.2.3