[Freeswitch-svn] [commit] r7959 - freeswitch/trunk/src/mod/applications/mod_fifo
Freeswitch SVN
anthm at freeswitch.org
Tue Mar 25 11:02:27 EDT 2008
Author: anthm
Date: Tue Mar 25 11:02:27 2008
New Revision: 7959
Modified:
freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
Log:
scope masking
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 Tue Mar 25 11:02:27 2008
@@ -672,12 +672,12 @@
} else if (!strcasecmp(argv[0], "count")) {
if (argc < 2) {
for (hi = switch_hash_first(NULL, globals.fifo_hash); hi; hi = switch_hash_next(hi)) {
- int x = 0;
+ int i = 0;
switch_hash_this(hi, &var, NULL, &val);
node = (fifo_node_t *) val;
len = 0;
- for (x = 0 ;x < MAX_PRI; x++) {
- len += switch_queue_size(node->fifo_list[x]);
+ for (i = 0; i < MAX_PRI; i++) {
+ len += switch_queue_size(node->fifo_list[i]);
}
switch_mutex_lock(node->mutex);
stream->write_function(stream, "%s:%d:%d:%d\n", (char *)var, node->consumer_count, node->caller_count, len);
@@ -690,10 +690,10 @@
}
} else {
if ((node = switch_core_hash_find(globals.fifo_hash, argv[1]))) {
- int x = 0;
+ int i = 0;
len = 0;
- for (x = 0 ;x < MAX_PRI; x++) {
- len += switch_queue_size(node->fifo_list[x]);
+ for (i = 0 ;i < MAX_PRI; i++) {
+ len += switch_queue_size(node->fifo_list[i]);
}
}
More information about the Freeswitch-svn
mailing list