--------------------- PatchSet 1550 Date: 2005/08/20 21:55:45 Author: serassio Branch: nt Tag: (none) Log: Make happy gcc 3.4.2 on MinGW Members: port/win32/include/squid-mswin.h:1.3.18.23->1.3.18.24 Index: squid3/port/win32/include/squid-mswin.h =================================================================== RCS file: /cvsroot/squid-sf//squid3/port/win32/include/Attic/squid-mswin.h,v retrieving revision 1.3.18.23 retrieving revision 1.3.18.24 diff -u -r1.3.18.23 -r1.3.18.24 --- squid3/port/win32/include/squid-mswin.h 20 Aug 2005 16:39:22 -0000 1.3.18.23 +++ squid3/port/win32/include/squid-mswin.h 20 Aug 2005 21:55:45 -0000 1.3.18.24 @@ -1,5 +1,5 @@ /* - * $Id: squid-mswin.h,v 1.3.18.23 2005/08/20 16:39:22 serassio Exp $ + * $Id: squid-mswin.h,v 1.3.18.24 2005/08/20 21:55:45 serassio Exp $ * * AUTHOR: Guido Serassio & Andrey Shorin * @@ -680,7 +680,7 @@ (SOCKET_ERROR == connect(_get_osfhandle(s),n,l) ? \ (WSAEMFILE == (errno = WSAGetLastError()) ? errno = EMFILE : -1, -1) : 0) #define gethostbyname(n) \ - (NULL == (ws32_result = gethostbyname(n)) ? \ + (NULL == ((HOSTENT FAR*)(ws32_result = (int)gethostbyname(n))) ? \ (errno = WSAGetLastError()), (HOSTENT FAR*)NULL : (HOSTENT FAR*)ws32_result) #define gethostname(n,l) \ (SOCKET_ERROR == gethostname(n,l) ? \