mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
astobj2: Eliminate usage of legacy container allocation macros.
These macros have been documented as legacy for a long time but are still used in new code because they exist. Remove all references to: * ao2_container_alloc_options * ao2_t_container_alloc_options * ao2_t_container_alloc These macro's are still available for use but only in modules. Only ao2_container_alloc remains due to it's use in over 100 places. Change-Id: I1a26258b5bf3deb081aaeed11a0baa175c933c7a
This commit is contained in:
@@ -458,7 +458,7 @@ static int astobj2_test_1_helper(int tst_num, enum test_container_type type, int
|
||||
test_sort_cb, test_cmp_cb, "test");
|
||||
break;
|
||||
}
|
||||
c2 = ao2_t_container_alloc(1, NULL, NULL, "test");
|
||||
c2 = ao2_t_container_alloc_list(AO2_ALLOC_OPT_LOCK_MUTEX, 0, NULL, NULL, "test");
|
||||
|
||||
if (!c1 || !c2) {
|
||||
ast_test_status_update(test, "ao2_container_alloc failed.\n");
|
||||
|
Reference in New Issue
Block a user