summaryrefslogtreecommitdiff
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-06-22 17:42:14 +0000
committerMark Spencer <markster@digium.com>2004-06-22 17:42:14 +0000
commit5546e323550422b8a84e7c1d0b69e11623666cb6 (patch)
treea3a0875ae4e73c9d9a1fc67f56ffa1ce73fe5457 /apps/app_queue.c
parent2f4a0dc3f5743f625976e39c031adbc7002f57d0 (diff)
Merge major BSD mutex and symbol conflict patches (bug #1816) (link patch still pending)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rwxr-xr-xapps/app_queue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index a406eea43..e36bbda8e 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -330,6 +330,7 @@ static void destroy_queue(struct ast_call_queue *q)
}
ast_mutex_unlock(&qlock);
free_members(q, 1);
+ ast_mutex_destroy(&q->lock);
free(q);
}
@@ -628,7 +629,7 @@ static int valid_exit(struct queue_ent *qe, char digit)
return 0;
}
-#define MAX 256
+#define AST_MAX_WATCHERS 256
static struct localuser *wait_for_answer(struct queue_ent *qe, struct localuser *outgoing, int *to, int *allowredir_in, int *allowredir_out, int *allowdisconnect, char *digit)
{
@@ -641,7 +642,7 @@ static struct localuser *wait_for_answer(struct queue_ent *qe, struct localuser
int orig = *to;
struct ast_frame *f;
struct localuser *peer = NULL;
- struct ast_channel *watchers[MAX];
+ struct ast_channel *watchers[AST_MAX_WATCHERS];
int pos;
struct ast_channel *winner;
struct ast_channel *in = qe->chan;