[Asterisk-cvs] zaptel zaptel.c,1.55,1.56

markster at lists.digium.com markster at lists.digium.com
Fri Feb 6 15:10:02 CST 2004


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv13541

Modified Files:
	zaptel.c 
Log Message:
Cleanup delayed removal code


Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- zaptel.c	6 Feb 2004 21:13:14 -0000	1.55
+++ zaptel.c	6 Feb 2004 21:18:45 -0000	1.56
@@ -1463,16 +1463,6 @@
 
 #endif
 
-static void __zt_recalc_maxchans(void)
-{
-	int x;
-	maxchans = 0;
-	for (x=1;x<ZT_MAX_CHANNELS;x++) 
-		if (chans[x]) {
-			maxchans = x + 1;
-		}
-}
-
 static void zt_chan_unreg(struct zt_chan *chan)
 {
 	int x;
@@ -5882,8 +5872,8 @@
 					__zt_free_pseudo(chans[x]);
 				}
 			}
+			zapneedfree = 0;
 		}
-		__zt_recalc_maxchans();
 		spin_unlock_irqrestore(&zapfreelock, flags);
 
 	}




More information about the svn-commits mailing list