Summary: | ASTERISK-06233: [patch] Converting /(root) to use *alloc() wrappers - 3 | ||
Reporter: | Matthew Roth (matthew roth) | Labels: | |
Date Opened: | 2006-02-01 15:27:33.000-0600 | Date Closed: | 2008-01-15 16:35:06.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) root_cli_to_dnsmgr-alloc_wrappers-1.0.patch | |
Description: | This patch updates the following files in the root source directory to use the new *alloc() wrappers: - /cli.c - /config.c - /db.c - /devicestate.c - /dnsmgr.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 - untested allocations commented - removed unnecessary initializations - stored recalculated values in variables - removed unneeded variables - general code consolidation | ||
Comments: | By: Russell Bryant (russell) 2006-02-09 10:00:06.000-0600 added to the trunk in rev 9310, thanks! By: Digium Subversion (svnbot) 2008-01-15 16:35:06.000-0600 Repository: asterisk Revision: 9310 U trunk/cli.c U trunk/config.c U trunk/db.c U trunk/devicestate.c U trunk/dnsmgr.c ------------------------------------------------------------------------ r9310 | russell | 2008-01-15 16:35:06 -0600 (Tue, 15 Jan 2008) | 3 lines conversions to memory allocation wrappers, remove duplicated error messages, remove unnecessary casts, malloc+memset to calloc (issue ASTERISK-6233) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=9310 |