[asterisk-commits] rizzo: trunk r47295 - /trunk/apps/app_queue.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Nov 7 15:26:49 MST 2006


Author: rizzo
Date: Tue Nov  7 16:26:48 2006
New Revision: 47295

URL: http://svn.digium.com/view/asterisk?rev=47295&view=rev
Log:
%ld and time_t don't match, so cast the argument to long
to ease portability problems


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?rev=47295&r1=47294&r2=47295&view=diff
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Nov  7 16:26:48 2006
@@ -2620,7 +2620,7 @@
 		/* use  pbx_builtin_setvar to set a load of variables with one call */
 		if (qe->parent->setinterfacevar) {
 			snprintf(interfacevar,sizeof(interfacevar), "MEMBERINTERFACE=%s|MEMBERNAME=%s|MEMBERCALLS=%d|MEMBERLASTCALL=%ld|MEMBERPENALTY=%d|MEMBERDYNAMIC=%d",
-				member->interface, member->membername, member->calls, member->lastcall, member->penalty, member->dynamic);
+				member->interface, member->membername, member->calls, (long)member->lastcall, member->penalty, member->dynamic);
 		 	pbx_builtin_setvar(qe->chan, interfacevar);
 		}
 		



More information about the asterisk-commits mailing list