summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-06-29 17:56:29 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-06-29 17:56:29 +0000
commitb5f6eac49e7aabe9315f8c5149acc66b4825a1a4 (patch)
treebf2e779e3f2763882b6893a7092138f4ea181f80 /main
parentf2a94ef51cbb2352004f454212555524ba57b157 (diff)
Allow trunk to once again compile under MALLOC_DEBUG
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@204118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/channel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c
index f33de43ea..a95e8f217 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1021,17 +1021,21 @@ struct ast_channel *__ast_channel_alloc(int needqueue, int state, const char *ci
/* only do the minimum amount of work needed here to make a channel
* structure that can be used to expand channel vars */
+#if defined(REF_DEBUG) || defined(__AST_DEBUG_MALLOC)
+struct ast_channel *__ast_dummy_channel_alloc(const char *file, int line, const char *function)
+#else
struct ast_channel *ast_dummy_channel_alloc(void)
+#endif
{
struct ast_channel *tmp;
struct varshead *headp;
#if defined(REF_DEBUG)
- if (!(tmp = __ao2_alloc_debug(sizeof(*tmp), ast_dummy_channel_destructor, "", file, line, function, 1))) {
+ if (!(tmp = __ao2_alloc_debug(sizeof(*tmp), ast_dummy_channel_destructor, "dummy channel", file, line, function, 1))) {
return NULL;
}
#elif defined(__AST_DEBUG_MALLOC)
- if (!(tmp = __ao2_alloc_debug(sizeof(*tmp), ast_dummy_channel_destructor, "", file, line, function, 0))) {
+ if (!(tmp = __ao2_alloc_debug(sizeof(*tmp), ast_dummy_channel_destructor, "dummy channel", file, line, function, 0))) {
return NULL;
}
#else