[asterisk-bugs] [Zaptel 0012241]: [patch] New Ztdynamic driver for Redfone Communications foneBRIDGE 2 platform

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Mar 20 13:37:57 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12241 
====================================================================== 
Reported By:                brettcar
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   12241
Category:                   NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Zaptel Version:             1.4.9.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-17-2008 12:50 CDT
Last Modified:              03-20-2008 13:37 CDT
====================================================================== 
Summary:                    [patch] New Ztdynamic driver for Redfone
Communications foneBRIDGE 2 platform
Description: 
Attached is the current production code used for Redfone's foneBRIDGE 2
platform that utilizes multiframe ztdynamic/ztd-eth packets. Makefiles et
cetera not included but could be provided if needed -- it's just a standard
module like ztd-eth.
====================================================================== 

---------------------------------------------------------------------- 
 brettcar - 03-20-08 13:37  
---------------------------------------------------------------------- 
qwell,
  I agree that's not a particularly good convention but the change is
pretty trivial.

--- kernel/ztd-ethmf.c.old	2008-03-20 15:54:35.000000000 +0000
+++ kernel/ztd-ethmf.c	2008-03-20 18:39:54.000000000 +0000
@@ -98,17 +98,17 @@
 struct ztdeth *ztdethmf_getz(struct zt_span *span)
 {
 	unsigned long flags;
-	struct ztdeth *z = NULL, *Z = NULL;
+	struct ztdeth *z = NULL, *found = NULL;
 
 	spin_lock_irqsave(&zlock, flags);
 	z = zdevs;
 	while (z) {
 		if (z->span == span)
-			Z = z;
+			found = z;
 		z = z->next;
 	}
 	spin_unlock_irqrestore(&zlock, flags);
-	return Z;
+	return found;
 }
 
 struct zt_span *ztdethmf_getspan(unsigned char *addr, unsigned short
subaddr) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-20-08 13:37  brettcar       Note Added: 0084342                          
======================================================================




More information about the asterisk-bugs mailing list