[Freeswitch-svn] [commit] r13210 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Thu Apr 30 07:02:24 PDT 2009


Author: anthm
Date: Thu Apr 30 09:02:24 2009
New Revision: 13210

Log:
FSCORE-355

Modified:
   freeswitch/trunk/src/switch_utils.c

Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c	(original)
+++ freeswitch/trunk/src/switch_utils.c	Thu Apr 30 09:02:24 2009
@@ -1156,9 +1156,9 @@
 	if (flags & SWITCH_URI_NO_SCOPE && sa->family == AF_INET6) {
 		memcpy(&ss, &sa->sa, sa->salen);
 		((struct sockaddr_in6*) (intptr_t) &ss)->sin6_scope_id = 0;
-		addr = (const struct sockaddr*) &ss;
+		addr = (const struct sockaddr*) (intptr_t)&ss;
 	} else {
-		addr = (const struct sockaddr*) &sa->sa;
+		addr = (const struct sockaddr*) (intptr_t)&sa->sa;
 	}
 
 	if (getnameinfo(addr, sa->salen, host, sizeof(host), serv, sizeof(serv),



More information about the Freeswitch-svn mailing list