summaryrefslogtreecommitdiff
path: root/res/res_musiconhold.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 /res/res_musiconhold.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 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 6411af242..37d347809 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -889,7 +889,8 @@ static struct mohclass *_get_mohbyname(const char *name, int warn, int flags, co
ast_copy_string(tmp_class.name, name, sizeof(tmp_class.name));
#ifdef REF_DEBUG
- moh = __ao2_find_debug(mohclasses, &tmp_class, flags, "get_mohbyname", (char *) file, lineno, funcname);
+ moh = __ao2_find_debug(mohclasses, &tmp_class, flags,
+ "get_mohbyname", file, lineno, funcname);
#else
moh = __ao2_find(mohclasses, &tmp_class, flags);
#endif
@@ -1338,9 +1339,11 @@ static struct mohclass *_moh_class_malloc(const char *file, int line, const char
if ((class =
#ifdef REF_DEBUG
- __ao2_alloc_debug(sizeof(*class), moh_class_destructor, "Allocating new moh class", file, line, funcname, 1)
+ __ao2_alloc_debug(sizeof(*class), moh_class_destructor,
+ AO2_ALLOC_OPT_LOCK_MUTEX, "Allocating new moh class", file, line, funcname, 1)
#elif defined(__AST_DEBUG_MALLOC)
- __ao2_alloc_debug(sizeof(*class), moh_class_destructor, "Allocating new moh class", file, line, funcname, 0)
+ __ao2_alloc_debug(sizeof(*class), moh_class_destructor,
+ AO2_ALLOC_OPT_LOCK_MUTEX, "Allocating new moh class", file, line, funcname, 0)
#else
ao2_alloc(sizeof(*class), moh_class_destructor)
#endif