Use int for storing ao2_container_count instad of size_t
authorTerry Wilson <twilson@digium.com>
Tue, 25 Oct 2011 21:11:14 +0000 (21:11 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 25 Oct 2011 21:11:14 +0000 (21:11 +0000)
AST-676
........

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

Merged revisions 342436 from http://svn.asterisk.org/svn/asterisk/branches/10

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

apps/app_queue.c

index 9601201..6f66f3a 100644 (file)
@@ -4156,7 +4156,7 @@ static int update_queue(struct call_queue *q, struct member *member, int callcom
 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) {