Merged revisions 163084 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 11 Dec 2008 16:47:34 +0000 (16:47 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 11 Dec 2008 16:47:34 +0000 (16:47 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r163084 | mmichelson | 2008-12-11 10:46:22 -0600 (Thu, 11 Dec 2008) | 4 lines

Revert this cast to long. Using time_t here causes build failures on a
FreeBSD 32-bit build.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@163085 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 425ec9b..fe039f7 100644 (file)
@@ -3298,8 +3298,8 @@ static void queue_transfer_fixup(void *data, struct ast_channel *old_chan, struc
        struct ast_datastore *datastore;
 
        ast_queue_log(qe->parent->name, qe->chan->uniqueid, member->membername, "TRANSFER", "%s|%s|%ld|%ld|%d",
        struct ast_datastore *datastore;
 
        ast_queue_log(qe->parent->name, qe->chan->uniqueid, member->membername, "TRANSFER", "%s|%s|%ld|%ld|%d",
-                               new_chan->exten, new_chan->context, (time_t) (callstart - qe->start),
-                               (time_t) (time(NULL) - callstart), qe->opos);
+                               new_chan->exten, new_chan->context, (long) (callstart - qe->start),
+                               (long) (time(NULL) - callstart), qe->opos);
 
        update_queue(qe->parent, member, callcompletedinsl);
        
 
        update_queue(qe->parent, member, callcompletedinsl);