stasis: Fix compilation issue with ao2 tagged objects
........ Merged revisions 420099 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
47bf7efc4d
commit
ac5c75b45d
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ static struct application_tuple *application_tuple_alloc(const char *app_name, m
|
||||||
|
|
||||||
ast_assert(callback != NULL);
|
ast_assert(callback != NULL);
|
||||||
|
|
||||||
tuple = ao2_t_alloc(size, application_tuple_dtor, AO2_ALLOC_OPT_LOCK_NOLOCK);
|
tuple = ao2_alloc_options(size, application_tuple_dtor, AO2_ALLOC_OPT_LOCK_NOLOCK);
|
||||||
if (!tuple) {
|
if (!tuple) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ static struct message_subscription *message_subscription_alloc(const char *token
|
||||||
struct message_subscription *sub;
|
struct message_subscription *sub;
|
||||||
size_t size = sizeof(*sub) + strlen(token) + 1;
|
size_t size = sizeof(*sub) + strlen(token) + 1;
|
||||||
|
|
||||||
sub = ao2_t_alloc(size, message_subscription_dtor, AO2_ALLOC_OPT_LOCK_RWLOCK);
|
sub = ao2_alloc_options(size, message_subscription_dtor, AO2_ALLOC_OPT_LOCK_RWLOCK);
|
||||||
if (!sub) {
|
if (!sub) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue