[Home]

Summary:ASTERISK-06343: [patch] Converting /(root) to use *alloc() wrappers - 5
Reporter:Matthew Roth (matthew roth)Labels:
Date Opened:2006-02-16 17:54:52.000-0600Date Closed:2008-01-15 16:55:12.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) root_frame-alloc_wrappers-1.0.patch
Description:This patch updates the following files in the root source directory to use the new *alloc() wrappers:

- /frame.c

The following cleanup tasks were also performed on the updated code:

- malloc() + memset() consolidated to ast_calloc()
- allocations and null checks consolidated to 1 line
- sizeof calls changed to reflect the coding guidelines
- lists of #define-d numeric constants converted to enums
- stored recalculated values in variables
- removed unnecessary initializations
- removed unneeded variables
- general code consolidation
Comments:By: Russell Bryant (russell) 2006-02-21 12:24:27.000-0600

added to the trunk in rev 10661, thanks!

By: Digium Subversion (svnbot) 2008-01-15 16:55:12.000-0600

Repository: asterisk
Revision: 10661

U   trunk/frame.c

------------------------------------------------------------------------
r10661 | russell | 2008-01-15 16:55:12 -0600 (Tue, 15 Jan 2008) | 3 lines

converstions to allocation wrappers, use calloc instead of malloc+memset,
and various other changes to conform with current coding guidelines (issue ASTERISK-6343)

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

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