[Freeswitch-svn] [commit] r6160 - freeswitch/trunk/src/mod/applications/mod_fifo

Freeswitch SVN mikej at freeswitch.org
Sun Nov 4 06:05:52 EST 2007


Author: mikej
Date: Sun Nov  4 06:05:52 2007
New Revision: 6160

Modified:
   freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c

Log:
workaround for gcc 4.3 warning (MODAPP-44)

Modified: freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c	Sun Nov  4 06:05:52 2007
@@ -464,15 +464,16 @@
 
     switch_xml_t x_fifo;
     int cc_off = 0;
-    char tmp[35];
+    char buffer[35];
+	char *tmp = buffer;
 
     x_fifo = switch_xml_add_child_d(x_report, "fifo", (*off)++);;
     assert(x_fifo);
 
     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);
-    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);
     
     cc_off = xml_hash(x_fifo, node->caller_hash, "callers", "caller", cc_off, verbose);



More information about the Freeswitch-svn mailing list