[Freeswitch-svn] [commit] r12232 - freeswitch/branches/ctrix/mod_airpe
FreeSWITCH SVN
ctrix at freeswitch.org
Sun Feb 22 04:27:47 PST 2009
Author: ctrix
Date: Sun Feb 22 06:27:47 2009
New Revision: 12232
Log:
fix warnings
Modified:
freeswitch/branches/ctrix/mod_airpe/mod_airpe.c
Modified: freeswitch/branches/ctrix/mod_airpe/mod_airpe.c
==============================================================================
--- freeswitch/branches/ctrix/mod_airpe/mod_airpe.c (original)
+++ freeswitch/branches/ctrix/mod_airpe/mod_airpe.c Sun Feb 22 06:27:47 2009
@@ -118,7 +118,7 @@
switch_socket_t *new_sock = NULL;
switch_sockaddr_t *sa;
- rv = switch_sockaddr_info_get(&sa, host, AF_INET, port, 0, airpe_module_pool);
+ rv = switch_sockaddr_info_get(&sa, host, AF_INET, (switch_port_t) port, 0, airpe_module_pool);
if ( rv != SWITCH_STATUS_SUCCESS ) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Socket Creation Error! (1)\n");
return NULL;
@@ -200,7 +200,7 @@
airpe_audio_sockets_create(airpe);
switch_threadattr_create(&attr_skype, airpe_module_pool);
- switch_threadattr_detach_set(&attr_skype, 0);
+ switch_threadattr_detach_set(attr_skype, 0);
switch_threadattr_stacksize_set(attr_skype, SWITCH_THREAD_STACKSIZE);
return switch_thread_create(&airpe->airpe_thread_skype,
@@ -874,8 +874,9 @@
SWITCH_MODULE_LOAD_FUNCTION(mod_airpe_load)
{
- airpe_module_pool = pool;
- switch_status_t ret;
+ switch_status_t ret;
+ airpe_module_pool = (switch_memory_pool_t *) pool;
+
memset(&globals, 0, sizeof(globals));
More information about the Freeswitch-svn
mailing list