ws2_32: Remove an unnecessary cast.

This commit is contained in:
Juan Lang 2009-07-16 08:46:20 -07:00 committed by Alexandre Julliard
parent f59a3097f2
commit a9a1cd269c
1 changed files with 1 additions and 2 deletions

View File

@ -4936,8 +4936,7 @@ INT WINAPI WSAAddressToStringA( LPSOCKADDR sockaddr, DWORD len,
if (!sockaddr || len < sizeof(SOCKADDR_IN)) return SOCKET_ERROR;
if (!string || !lenstr) return SOCKET_ERROR;
/* sin_family is guaranteed to be the first u_short */
switch(((SOCKADDR_IN *)sockaddr)->sin_family)
switch(sockaddr->sa_family)
{
case WS_AF_INET:
sprintf( buffer, "%u.%u.%u.%u:%u",