mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Fixing the build.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3214,10 +3214,9 @@ static int remove_from_queue(const char *queuename, const char *interface)
|
|||||||
if ((mem = ao2_find(q->members, &tmpmem, OBJ_POINTER))) {
|
if ((mem = ao2_find(q->members, &tmpmem, OBJ_POINTER))) {
|
||||||
/* XXX future changes should beware of this assumption!! */
|
/* XXX future changes should beware of this assumption!! */
|
||||||
if(!mem->dynamic) {
|
if(!mem->dynamic) {
|
||||||
res = RES_NOT_DYNAMIC;
|
|
||||||
ao2_ref(mem, -1);
|
ao2_ref(mem, -1);
|
||||||
ast_mutex_unlock(&q->lock);
|
ao2_unlock(q);
|
||||||
break;
|
return RES_NOT_DYNAMIC;
|
||||||
}
|
}
|
||||||
q->membercount--;
|
q->membercount--;
|
||||||
manager_event(EVENT_FLAG_AGENT, "QueueMemberRemoved",
|
manager_event(EVENT_FLAG_AGENT, "QueueMemberRemoved",
|
||||||
@@ -4844,8 +4843,8 @@ static char *handle_queue_add_member(struct ast_cli_entry *e, int cmd, struct as
|
|||||||
ast_cli(a->fd, "Out of memory\n");
|
ast_cli(a->fd, "Out of memory\n");
|
||||||
return CLI_FAILURE;
|
return CLI_FAILURE;
|
||||||
case RES_NOT_DYNAMIC:
|
case RES_NOT_DYNAMIC:
|
||||||
ast_cli(fd, "Member not dynamic\n");
|
ast_cli(a->fd, "Member not dynamic\n");
|
||||||
return RESULT_FAILURE;
|
return CLI_FAILURE;
|
||||||
default:
|
default:
|
||||||
return CLI_FAILURE;
|
return CLI_FAILURE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user