[Asterisk-cvs] zaptel zaptel.c,1.90,1.91

jim at lists.digium.com jim at lists.digium.com
Sat Aug 21 17:48:54 CDT 2004


Update of /usr/cvsroot/zaptel
In directory localhost.localdomain:/tmp/cvs-serv6312

Modified Files:
	zaptel.c 
Log Message:
Fixed qevent() in zaptel.c so that it would hold the proper number of events
in the queue (not just 1 like it was).


Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- zaptel.c	28 Jul 2004 21:16:14 -0000	1.90
+++ zaptel.c	21 Aug 2004 21:34:58 -0000	1.91
@@ -639,7 +639,7 @@
 	if ((chan->eventoutidx == 0) && (chan->eventinidx == (ZT_MAX_EVENTSIZE - 1))) 
 		return;
 	  /* if full, ignore */
-	if (chan->eventoutidx == (chan->eventinidx - 1)) return;
+	if (chan->eventinidx == (chan->eventoutidx - 1)) return;
 	  /* save the event */
 	chan->eventbuf[chan->eventinidx++] = event;
 	  /* wrap the index, if necessary */




More information about the svn-commits mailing list