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

Freeswitch SVN anthm at freeswitch.org
Fri Jan 19 14:52:19 EST 2007


Author: anthm
Date: Fri Jan 19 14:52:19 2007
New Revision: 4002

Modified:
   freeswitch/trunk/src/switch_utils.c

Log:
auto ip fix for w32

Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c	(original)
+++ freeswitch/trunk/src/switch_utils.c	Fri Jan 19 14:52:19 2007
@@ -67,6 +67,9 @@
     case AF_INET6:
         base = "52.2d.94.d1";
         break;
+	default:
+		base = "127.0.0.1";
+		break;
     }
 
 
@@ -78,10 +81,10 @@
     if (WSAIoctl(tmp_socket,
                  SIO_ROUTING_INTERFACE_QUERY,
                  address_info->ai_addr,
-                 address_info->ai_addrlen,
+                 (DWORD)address_info->ai_addrlen,
                  &l_address,
                  sizeof(l_address),
-                 &l_address_len,
+                 (LPDWORD)&l_address_len,
                  NULL,
                  NULL)) {
         



More information about the Freeswitch-svn mailing list