[Freeswitch-svn] [commit] r13659 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN anthm at freeswitch.org
Fri Jun 5 15:00:10 PDT 2009


Author: anthm
Date: Fri Jun  5 17:00:10 2009
New Revision: 13659

Log:
picky compilers

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Fri Jun  5 17:00:10 2009
@@ -3195,6 +3195,7 @@
 	switch_chat_interface_t *chat_interface;
 	switch_api_interface_t *api_interface;
 	switch_management_interface_t *management_interface;
+	struct in_addr in;
 
 	silence_frame.data = silence_data;
 	silence_frame.datalen = sizeof(silence_data);
@@ -3209,7 +3210,8 @@
 	switch_mutex_init(&mod_sofia_globals.mutex, SWITCH_MUTEX_NESTED, mod_sofia_globals.pool);
 
 	switch_find_local_ip(mod_sofia_globals.guess_ip, sizeof(mod_sofia_globals.guess_ip), &mod_sofia_globals.guess_mask, AF_INET);
-	switch_set_string(mod_sofia_globals.guess_mask_str, inet_ntoa(*(struct in_addr *)&mod_sofia_globals.guess_mask));
+	in.s_addr = mod_sofia_globals.guess_mask;
+	switch_set_string(mod_sofia_globals.guess_mask_str, inet_ntoa(in));
 	gethostname(mod_sofia_globals.hostname, sizeof(mod_sofia_globals.hostname));
 
 



More information about the Freeswitch-svn mailing list