summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2012-02-28 20:34:11 +0000
committerRichard Mudgett <rmudgett@digium.com>2012-02-28 20:34:11 +0000
commite063fa6b3f976f7fcc36e444c46c005589e2a8a7 (patch)
treea3b2e02846a54f63ad0f541d08ab0ec6cdb70a57 /main/channel.c
parent845296e3fb1caca87146daef3d58495df9d4422c (diff)
Fix REF_DEBUG compile errors.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/main/channel.c b/main/channel.c
index ded41da29..c900d0e65 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -931,11 +931,11 @@ __ast_channel_alloc_ap(int needqueue, int state, const char *cid_num, const char
}
#if defined(REF_DEBUG)
- tmp = __ao2_alloc_debug(sizeof(*tmp), ast_channel_destructor, "", file, line,
- function, 1);
+ tmp = __ao2_alloc_debug(sizeof(*tmp), ast_channel_destructor,
+ AO2_ALLOC_OPT_LOCK_MUTEX, "", file, line, function, 1);
#elif defined(__AST_DEBUG_MALLOC)
- tmp = __ao2_alloc_debug(sizeof(*tmp), ast_channel_destructor, "", file, line,
- function, 0);
+ tmp = __ao2_alloc_debug(sizeof(*tmp), ast_channel_destructor,
+ AO2_ALLOC_OPT_LOCK_MUTEX, "", file, line, function, 0);
#else
tmp = ao2_alloc(sizeof(*tmp), ast_channel_destructor);
#endif
@@ -1179,11 +1179,11 @@ struct ast_channel *ast_dummy_channel_alloc(void)
struct varshead *headp;
#if defined(REF_DEBUG)
- tmp = __ao2_alloc_debug(sizeof(*tmp), ast_dummy_channel_destructor, "dummy channel",
- file, line, function, 1);
+ tmp = __ao2_alloc_debug(sizeof(*tmp), ast_dummy_channel_destructor,
+ AO2_ALLOC_OPT_LOCK_MUTEX, "dummy channel", file, line, function, 1);
#elif defined(__AST_DEBUG_MALLOC)
- tmp = __ao2_alloc_debug(sizeof(*tmp), ast_dummy_channel_destructor, "dummy channel",
- file, line, function, 0);
+ tmp = __ao2_alloc_debug(sizeof(*tmp), ast_dummy_channel_destructor,
+ AO2_ALLOC_OPT_LOCK_MUTEX, "dummy channel", file, line, function, 0);
#else
tmp = ao2_alloc(sizeof(*tmp), ast_dummy_channel_destructor);
#endif