[asterisk-commits] twilson: branch 1.8 r342435 - /branches/1.8/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 25 16:08:26 CDT 2011
Author: twilson
Date: Tue Oct 25 16:08:23 2011
New Revision: 342435
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=342435
Log:
Use int for storing ao2_container_count instad of size_t
AST-676
Modified:
branches/1.8/apps/app_queue.c
Modified: branches/1.8/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_queue.c?view=diff&rev=342435&r1=342434&r2=342435
==============================================================================
--- branches/1.8/apps/app_queue.c (original)
+++ branches/1.8/apps/app_queue.c Tue Oct 25 16:08:23 2011
@@ -4041,7 +4041,7 @@
static int calc_metric(struct call_queue *q, struct member *mem, int pos, struct queue_ent *qe, struct callattempt *tmp)
{
/* disregarding penalty on too few members? */
- size_t membercount = ao2_container_count(q->members);
+ int membercount = ao2_container_count(q->members);
unsigned char usepenalty = (membercount <= q->penaltymemberslimit) ? 0 : 1;
if (usepenalty) {
More information about the asterisk-commits
mailing list