[Freeswitch-svn] [commit] r11075 - freeswitch/trunk/src/mod/applications/mod_fifo
FreeSWITCH SVN
silik0n at freeswitch.org
Tue Jan 13 15:27:55 PST 2009
Author: silik0n
Date: Tue Jan 13 18:27:54 2009
New Revision: 11075
Log:
clean up formatting
Modified:
freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
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 Jan 13 18:27:54 2009
@@ -389,16 +389,16 @@
{
switch_hash_index_t *hi;
void *val;
- const void *var;
+ const void *var;
switch_core_session_t *session;
- switch_channel_t *channel;
+ switch_channel_t *channel;
int total = 0;
switch_mutex_lock(node->mutex);
for (hi = switch_hash_first(NULL, node->consumer_hash); hi; hi = switch_hash_next(hi)) {
switch_hash_this(hi, &var, NULL, &val);
session = (switch_core_session_t *) val;
- channel = switch_core_session_get_channel(session);
+ channel = switch_core_session_get_channel(session);
if (!switch_channel_test_flag(channel, CF_BRIDGED)) {
total++;
}
@@ -1863,8 +1863,8 @@
sql = switch_mprintf("delete from fifo_outbound where fifo_name='%q' and uuid = '%q'", fifo_name, digest);
switch_assert(sql);
- fifo_execute_sql(sql, globals.sql_mutex);
- free(sql);
+ fifo_execute_sql(sql, globals.sql_mutex);
+ free(sql);
switch_mutex_lock(globals.mutex);
@@ -1895,8 +1895,8 @@
sql = switch_mprintf("delete from fifo_outbound where fifo_name='%q' and uuid = '%q' and hostname='%q'", fifo_name, digest, globals.hostname);
switch_assert(sql);
- fifo_execute_sql(sql, globals.sql_mutex);
- free(sql);
+ fifo_execute_sql(sql, globals.sql_mutex);
+ free(sql);
}
#define FIFO_MEMBER_API_SYNTAX "[add <fifo_name> <originate_string> [<simo_count>] [<timeout>] [<lag>] | del <fifo_name> <originate_string>]"
@@ -1956,7 +1956,7 @@
stream->write_function(stream, "%s", "+OK\n");
} else {
stream->write_function(stream, "%s", "-ERR Invalid!\n");
- goto done;
+ goto done;
}
done:
More information about the Freeswitch-svn
mailing list