[asterisk-commits] file: trunk r392667 - /trunk/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jun 23 13:59:38 CDT 2013


Author: file
Date: Sun Jun 23 13:59:36 2013
New Revision: 392667

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392667
Log:
Add some more missing ast_sorcery_generic_alloc conversions.

Modified:
    trunk/res/res_sip_acl.c
    trunk/res/res_sip_endpoint_identifier_ip.c
    trunk/res/res_sip_outbound_registration.c

Modified: trunk/res/res_sip_acl.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_sip_acl.c?view=diff&rev=392667&r1=392666&r2=392667
==============================================================================
--- trunk/res/res_sip_acl.c (original)
+++ trunk/res/res_sip_acl.c Sun Jun 23 13:59:36 2013
@@ -226,7 +226,7 @@
 
 static void *sip_acl_alloc(const char *name)
 {
-	struct sip_acl *acl = ao2_alloc(sizeof(*acl), sip_acl_destructor);
+	struct sip_acl *acl = ast_sorcery_generic_alloc(sizeof(*acl), sip_acl_destructor);
 	if (!acl) {
 		return NULL;
 	}

Modified: trunk/res/res_sip_endpoint_identifier_ip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_sip_endpoint_identifier_ip.c?view=diff&rev=392667&r1=392666&r2=392667
==============================================================================
--- trunk/res/res_sip_endpoint_identifier_ip.c (original)
+++ trunk/res/res_sip_endpoint_identifier_ip.c Sun Jun 23 13:59:36 2013
@@ -74,7 +74,7 @@
 /*! \brief Allocator function for a matching object */
 static void *ip_identify_alloc(const char *name)
 {
-	struct ip_identify_match *identify = ao2_alloc(sizeof(*identify), ip_identify_destroy);
+	struct ip_identify_match *identify = ast_sorcery_generic_alloc(sizeof(*identify), ip_identify_destroy);
 
 	if (!identify || ast_string_field_init(identify, 256)) {
 		ao2_cleanup(identify);

Modified: trunk/res/res_sip_outbound_registration.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_sip_outbound_registration.c?view=diff&rev=392667&r1=392666&r2=392667
==============================================================================
--- trunk/res/res_sip_outbound_registration.c (original)
+++ trunk/res/res_sip_outbound_registration.c Sun Jun 23 13:59:36 2013
@@ -469,7 +469,7 @@
 /*! \brief Allocator function for registration information */
 static void *sip_outbound_registration_alloc(const char *name)
 {
-	struct sip_outbound_registration *registration = ao2_alloc(sizeof(*registration), sip_outbound_registration_destroy);
+	struct sip_outbound_registration *registration = ast_sorcery_generic_alloc(sizeof(*registration), sip_outbound_registration_destroy);
 
 	if (!registration || ast_string_field_init(registration, 256)) {
 		ao2_cleanup(registration);




More information about the asterisk-commits mailing list