[asterisk-bugs] [Asterisk 0014032]: Janitor project to use ARRAY_LEN

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 8 16:40:03 CST 2008


The following issue has been UPDATED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14032 
====================================================================== 
Reported By:                bkruse
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14032
Category:                   General
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 161869 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-08 16:36 CST
Last Modified:              2008-12-08 16:40 CST
====================================================================== 
Summary:                    Janitor project to use ARRAY_LEN
Description: 
Noticed this in doc/janitor-projects.txt

Uploaded a patch, also, a sed one liner for finding and fixing these.

For example: 

sed 's/sizeof(\(.*\))\/sizeof(.*\[0\])/ARRAY_LEN(\1)/g'
doc/janitor-projects.txt

-bk
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-08 16:40 bkruse         Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list