[Freeswitch-trunk] [commit] r13654 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Fri Jun 5 14:03:01 PDT 2009


Author: anthm
Date: Fri Jun  5 16:03:01 2009
New Revision: 13654

Log:
picky compilers

Modified:
   freeswitch/trunk/src/switch_core.c

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Fri Jun  5 16:03:01 2009
@@ -104,10 +104,11 @@
 		switch_set_string(main_ip4, guess_ip4);
 	} else {
 		if (!(ok4 = !strcmp(main_ip4, guess_ip4))) {
+
 			switch_set_string(old_ip4, main_ip4);
 			switch_set_string(main_ip4, guess_ip4);
 			switch_core_set_variable("local_ip_v4", guess_ip4);
-			switch_core_set_variable("local_mask_v4", inet_ntoa(*(struct in_addr *)(intptr_t)&mask));
+			switch_core_set_variable("local_mask_v4", inet_ntoa(mask));
 		}
 	}
 



More information about the Freeswitch-trunk mailing list