[Asterisk-cvs] asterisk/apps app_queue.c,1.64,1.65

markster at lists.digium.com markster at lists.digium.com
Sun May 30 16:28:19 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv3878/apps

Modified Files:
	app_queue.c 
Log Message:
Take member as argument, not lpeer


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- app_queue.c	25 May 2004 15:37:30 -0000	1.64
+++ app_queue.c	30 May 2004 20:43:55 -0000	1.65
@@ -820,7 +820,7 @@
 	return res;
 }
 
-static int update_queue(struct ast_call_queue *q, struct localuser *user)
+static int update_queue(struct ast_call_queue *q, struct member *member)
 {
 	struct member *cur;
 	/* Since a reload could have taken place, we have to traverse the list to
@@ -828,7 +828,7 @@
 	ast_mutex_lock(&q->lock);
 	cur = q->members;
 	while(cur) {
-		if (user->member == cur) {
+		if (member == cur) {
 			time(&cur->lastcall);
 			cur->calls++;
 			break;
@@ -1026,7 +1026,7 @@
 		}
 		/* Update parameters for the queue */
 		recalc_holdtime(qe);
-		update_queue(qe->parent, lpeer);
+		update_queue(qe->parent, lpeer->member);
 		hanguptree(outgoing, peer);
 		outgoing = NULL;
 		if (announce) {




More information about the svn-commits mailing list