[zaptel-commits] russell: trunk r2978 - in /trunk: ./ wctdm.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Aug 30 12:03:42 CDT 2007


Author: russell
Date: Thu Aug 30 12:03:42 2007
New Revision: 2978

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2978
Log:
Merged revisions 2977 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.4

........
r2977 | russell | 2007-08-30 12:02:02 -0500 (Thu, 30 Aug 2007) | 4 lines

Remove some code that could never be executed.  Instead of fixing the if statement,
I just removed it.  The contents of this global array are guaranteed to be zeroed
out for us on load.

........

Modified:
    trunk/   (props changed)
    trunk/wctdm.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/wctdm.c
URL: http://svn.digium.com/view/zaptel/trunk/wctdm.c?view=diff&rev=2978&r1=2977&r2=2978
==============================================================================
--- trunk/wctdm.c (original)
+++ trunk/wctdm.c Thu Aug 30 12:03:42 2007
@@ -2247,12 +2247,7 @@
 	struct wctdm_desc *d = (struct wctdm_desc *)ent->driver_data;
 	int x;
 	int y;
-	static int initd_ifaces=0;
 	
-	if(initd_ifaces){
-		memset((void *)ifaces,0,(sizeof(struct wctdm *))*WC_MAX_IFACES);
-		initd_ifaces=1;
-	}
 	for (x=0;x<WC_MAX_IFACES;x++)
 		if (!ifaces[x]) break;
 	if (x >= WC_MAX_IFACES) {




More information about the zaptel-commits mailing list