[commit] r11169 - freeswitch/trunk/src/mod/applications/mod_fifo
Author: silik0n Date: Tue Jan 13 17:57:12 2009 New Revision: 11169 Log: tab cleanup 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 17:57:12 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++; } @@ -469,7 +469,7 @@ switch_channel_set_state(channel, CS_EXECUTE); switch_core_session_rwunlock(session); - end: + end: switch_core_destroy_memory_pool(&h->pool); @@ -1607,7 +1607,7 @@ stream->write_function(stream, "-ERR Usage: %s\n", FIFO_API_SYNTAX); } - done: + done: switch_mutex_unlock(globals.mutex); return SWITCH_STATUS_SUCCESS; @@ -1814,7 +1814,7 @@ } switch_xml_free(xml); - done: + done: if (reload) { switch_hash_index_t *hi; @@ -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,10 +1956,10 @@ stream->write_function(stream, "%s", "+OK\n"); } else { stream->write_function(stream, "%s", "-ERR Invalid!\n"); - goto done; + goto done; } - done: + done: free(mydata);
participants (1)
-
FreeSWITCH SVN