[asterisk-commits] rizzo: trunk r47131 - /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 11:17:09 MST 2006


Author: rizzo
Date: Fri Nov  3 12:17:08 2006
New Revision: 47131

URL: http://svn.digium.com/view/asterisk?rev=47131&view=rev
Log:
remove old/useless usecnt stuff


Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=47131&r1=47130&r2=47131&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Fri Nov  3 12:17:08 2006
@@ -335,8 +335,6 @@
 
 /*! \brief How long to wait for an extra digit, if there is an ambiguous match */
 static int matchdigittimeout = 3000;
-
-static int usecnt = 0;
 
 /*! \brief Protect the interface list (of zt_pvt's) */
 AST_MUTEX_DEFINE_STATIC(iflock);
@@ -2922,8 +2920,6 @@
 	p->oprmode = 0;
 	ast->tech_pvt = NULL;
 	ast_mutex_unlock(&p->lock);
-	ast_atomic_fetchadd_int(&usecnt, -1);
-	ast_update_use_count();
 	if (option_verbose > 2) 
 		ast_verbose( VERBOSE_PREFIX_3 "Hungup '%s'\n", ast->name);
 
@@ -5658,9 +5654,6 @@
 		}
 	}
 
-	ast_atomic_fetchadd_int(&usecnt, 1);
-	ast_update_use_count();
-	
 	return tmp;
 }
 



More information about the asterisk-commits mailing list