提交 0526e004 authored 作者: Travis Cross's avatar Travis Cross

mod_fifo: Replace global var with local static

This marker value is only used in one place.
上级 2068b284
...@@ -111,8 +111,6 @@ typedef enum { ...@@ -111,8 +111,6 @@ typedef enum {
NODE_STRATEGY_ENTERPRISE NODE_STRATEGY_ENTERPRISE
} outbound_strategy_t; } outbound_strategy_t;
static int marker = 1;
typedef struct { typedef struct {
int nelm; int nelm;
int idx; int idx;
...@@ -796,6 +794,7 @@ static int check_bridge_call(const char *key) ...@@ -796,6 +794,7 @@ static int check_bridge_call(const char *key)
static void add_bridge_call(const char *key) static void add_bridge_call(const char *key)
{ {
static int marker = 1;
if (!key) return; if (!key) return;
switch_mutex_lock(globals.bridge_mutex); switch_mutex_lock(globals.bridge_mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论