[asterisk-bugs] [Zaptel 0011460]: [patch] unused code in zt_q_sig function

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 13:36:02 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11460 
====================================================================== 
Reported By:                flefoll
Assigned To:                qwell
====================================================================== 
Project:                    Zaptel
Issue ID:                   11460
Category:                   zaptel (the module)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 2810 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             12-04-2007 07:31 CST
Last Modified:              06-07-2008 13:36 CDT
====================================================================== 
Summary:                    [patch] unused code in zt_q_sig function
Description: 
No bug here : I just saw a strange sequence in zt_q_sig() :

static int printed = 0;
if (printed < 10) {
	printed++;
}

I guess this is a remainder of debugging code.
I propose a patch for SVN trunk to remove it, and de-obfuscate a little
bit zt_q_sig() (I know that C compilers don't care carriage returns, but we
humans do ...).

====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 13:36  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 3300

U   branches/1.4/zaptel-base.c

------------------------------------------------------------------------
r3300 | qwell | 2008-06-07 13:36:00 -0500 (Sat, 07 Jun 2008) | 4 lines

Remove some code that does...well...nothing.

Closes issue http://bugs.digium.com/view.php?id=11460, patch by flefoll.

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=3300 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 13:36  svnbot         Checkin                                      
06-07-08 13:36  svnbot         Note Added: 0088339                          
======================================================================




More information about the asterisk-bugs mailing list