mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
The variable used for the return value must be declared as static. I broke
this when applying the patch, sorry! (issue #9637, jeffg) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -590,14 +590,14 @@ static u_char *ast_var_channel_types_table(struct variable *vp, oid *name, size_
|
|||||||
static u_char *ast_var_channel_bridge(struct variable *vp, oid *name, size_t *length,
|
static u_char *ast_var_channel_bridge(struct variable *vp, oid *name, size_t *length,
|
||||||
int exact, size_t *var_len, WriteMethod **write_method)
|
int exact, size_t *var_len, WriteMethod **write_method)
|
||||||
{
|
{
|
||||||
unsigned long long_ret = 0;
|
static unsigned long long_ret = 0;
|
||||||
struct ast_channel *chan = NULL;
|
struct ast_channel *chan = NULL;
|
||||||
|
|
||||||
if (header_generic(vp, name, length, exact, var_len, write_method))
|
if (header_generic(vp, name, length, exact, var_len, write_method))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
while ((chan = ast_channel_walk_locked(chan))) {
|
while ((chan = ast_channel_walk_locked(chan))) {
|
||||||
if (ast_bridged_channel(chan) != NULL)
|
if (ast_bridged_channel(chan))
|
||||||
long_ret++;
|
long_ret++;
|
||||||
ast_channel_unlock(chan);
|
ast_channel_unlock(chan);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user