[asterisk-bugs] [Asterisk 0013054]: [patch] janitor project to use ARRAY_LEN instead of in-line sizeof() and division.

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jul 11 13:02:29 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13054 
====================================================================== 
Reported By:                pabelanger
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13054
Category:                   General
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 129568 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-10-2008 11:51 CDT
Last Modified:              07-11-2008 13:02 CDT
====================================================================== 
Summary:                    [patch] janitor project to use ARRAY_LEN instead of
in-line sizeof() and division.
Description: 
replaced:

 sizeof(array)/sizeof(array[0])

with:

 ARRAY_LEN(array)
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 07-11-08 13:02  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 130129

U   trunk/apps/app_chanspy.c
U   trunk/apps/app_milliwatt.c
U   trunk/apps/app_minivm.c
U   trunk/channels/chan_dahdi.c
U   trunk/channels/chan_gtalk.c
U   trunk/channels/chan_jingle.c
U   trunk/channels/chan_sip.c
U   trunk/channels/chan_skinny.c
U   trunk/codecs/codec_dahdi.c
U   trunk/codecs/codec_g722.c
U   trunk/codecs/codec_resample.c
U   trunk/main/abstract_jb.c
U   trunk/main/asterisk.c
U   trunk/main/cli.c
U   trunk/main/dsp.c
U   trunk/main/threadstorage.c
U   trunk/main/utils.c
U   trunk/pbx/dundi-parser.c
U   trunk/utils/astman.c

------------------------------------------------------------------------
r130129 | bbryant | 2008-07-11 13:02:03 -0500 (Fri, 11 Jul 2008) | 8 lines

Janitor patch to change uses of sizeof to ARRAY_LEN

(closes issue http://bugs.digium.com/view.php?id=13054)
Reported by: pabelanger
Patches:
      ARRAY_LEN.patch2 uploaded by pabelanger (license 224)
Tested by: seanbright

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

http://svn.digium.com/view/asterisk?view=rev&revision=130129 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-11-08 13:02  svnbot         Note Added: 0090104                          
======================================================================




More information about the asterisk-bugs mailing list