提交 8cd58e4e authored 作者: Michael Jerris's avatar Michael Jerris

workaround for gcc 4.3 warning (MODAPP-44)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6160 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c955f09a
...@@ -464,15 +464,16 @@ static void list_node(fifo_node_t *node, switch_xml_t x_report, int *off, int ve ...@@ -464,15 +464,16 @@ static void list_node(fifo_node_t *node, switch_xml_t x_report, int *off, int ve
switch_xml_t x_fifo; switch_xml_t x_fifo;
int cc_off = 0; int cc_off = 0;
char tmp[35]; char buffer[35];
char *tmp = buffer;
x_fifo = switch_xml_add_child_d(x_report, "fifo", (*off)++);; x_fifo = switch_xml_add_child_d(x_report, "fifo", (*off)++);;
assert(x_fifo); assert(x_fifo);
switch_xml_set_attr_d(x_fifo, "name", node->name); switch_xml_set_attr_d(x_fifo, "name", node->name);
snprintf(tmp, sizeof(tmp), "%d", node->consumer_count); snprintf(tmp, sizeof(buffer), "%d", node->consumer_count);
switch_xml_set_attr_d(x_fifo, "consumer_count", tmp); switch_xml_set_attr_d(x_fifo, "consumer_count", tmp);
snprintf(tmp, sizeof(tmp), "%d", node->caller_count); snprintf(tmp, sizeof(buffer), "%d", node->caller_count);
switch_xml_set_attr_d(x_fifo, "caller_count", tmp); switch_xml_set_attr_d(x_fifo, "caller_count", tmp);
cc_off = xml_hash(x_fifo, node->caller_hash, "callers", "caller", cc_off, verbose); cc_off = xml_hash(x_fifo, node->caller_hash, "callers", "caller", cc_off, verbose);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论