a bunch of conversion to ast_channel_*lock (issue #7058)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-04-29 14:50:18 +00:00
parent 54d6194340
commit 8085f4e14b
10 changed files with 67 additions and 67 deletions

4
app.c
View File

@@ -1042,7 +1042,7 @@ int ast_app_group_get_count(const char *group, const char *category)
test = pbx_builtin_getvar_helper(chan, cat);
if (test && !strcasecmp(test, group))
count++;
ast_mutex_unlock(&chan->lock);
ast_channel_unlock(chan);
}
return count;
@@ -1072,7 +1072,7 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category)
test = pbx_builtin_getvar_helper(chan, cat);
if (test && !regexec(&regexbuf, test, 0, NULL, 0))
count++;
ast_mutex_unlock(&chan->lock);
ast_channel_unlock(chan);
}
regfree(&regexbuf);