diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-20 17:28:36 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-20 17:28:36 +0000 |
commit | 5e91a9c80f4af93ad47834fbc19cb6d7277d184f (patch) | |
tree | f5bdf2af2384f98a8fdbd2d4a38abd525e8da1e2 /apps | |
parent | 9179e1aa4ce5a939eca4143ae35c34741edd45e6 (diff) |
Merged revisions 253538 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r253538 | russell | 2010-03-20 06:43:08 -0500 (Sat, 20 Mar 2010) | 2 lines
Resolve compiler warnings on FreeBSD.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@253612 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dial.c | 4 | ||||
-rw-r--r-- | apps/app_followme.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 1d8ea91b0..44acc35f8 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1497,12 +1497,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 b1d708b13..e79b6cf08 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -984,12 +984,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); |