]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add missing ast_sorcery_generic_alloc conversions.
authorJoshua Colp <jcolp@digium.com>
Sun, 23 Jun 2013 13:24:18 +0000 (13:24 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 23 Jun 2013 13:24:18 +0000 (13:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392647 65c4cc65-6c06-0410-ace0-fbb531ad65f3

tests/test_sorcery_astdb.c
tests/test_sorcery_realtime.c

index 2371397a4bca011e0084d5a71e47a31e759d9e6c..c45aabe6ddb8b572b616877e079100b9d1d39be3 100644 (file)
@@ -49,7 +49,7 @@ struct test_sorcery_object {
 /*! \brief Internal function to allocate a test object */
 static void *test_sorcery_object_alloc(const char *id)
 {
-       return ao2_alloc(sizeof(struct test_sorcery_object), NULL);
+       return ast_sorcery_generic_alloc(sizeof(struct test_sorcery_object), NULL);
 }
 
 static struct ast_sorcery *alloc_and_initialize_sorcery(void)
index 6f4196841b4b3f6491465f5a57fb15276aa7d820..85d104988ae7c434be375f8e4f8eb5930b21ad85 100644 (file)
@@ -201,7 +201,7 @@ struct test_sorcery_object {
 /*! \brief Internal function to allocate a test object */
 static void *test_sorcery_object_alloc(const char *id)
 {
-       return ao2_alloc(sizeof(struct test_sorcery_object), NULL);
+       return ast_sorcery_generic_alloc(sizeof(struct test_sorcery_object), NULL);
 }
 
 static struct ast_sorcery *alloc_and_initialize_sorcery(void)