[asterisk-commits] twilson: branch 10 r342436 - in /branches/10: ./ apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 25 16:10:05 CDT 2011


Author: twilson
Date: Tue Oct 25 16:10:02 2011
New Revision: 342436

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=342436
Log:
Use int for storing ao2_container_count instad of size_t

AST-676
........

Merged revisions 342435 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/apps/app_queue.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/apps/app_queue.c?view=diff&rev=342436&r1=342435&r2=342436
==============================================================================
--- branches/10/apps/app_queue.c (original)
+++ branches/10/apps/app_queue.c Tue Oct 25 16:10:02 2011
@@ -4116,7 +4116,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