ws2_32: Use SIZE_T instead of size_t for inet_ntop argument.

This commit is contained in:
Alexandre Julliard 2009-04-29 15:52:29 +02:00
parent 5b428fe55e
commit 445567ea95
2 changed files with 4 additions and 4 deletions

View File

@ -4695,13 +4695,13 @@ int WINAPI WSARemoveServiceClass(LPGUID info)
/***********************************************************************
* inet_ntop (WS2_32.@)
*/
PCSTR WINAPI WS_inet_ntop( INT family, PVOID addr, PSTR buffer, size_t len )
PCSTR WINAPI WS_inet_ntop( INT family, PVOID addr, PSTR buffer, SIZE_T len )
{
#ifdef HAVE_INET_NTOP
struct WS_in6_addr *in6;
struct WS_in_addr *in;
TRACE("family %d, addr (%p), buffer (%p), len %d\n", family, addr, buffer, len);
TRACE("family %d, addr (%p), buffer (%p), len %ld\n", family, addr, buffer, len);
switch (family)
{
case WS_AF_INET:

View File

@ -161,9 +161,9 @@ int WINAPI WS(getnameinfo)(const SOCKADDR*,WS(socklen_t),PCHAR,DWORD,PCHAR,DWOR
#define GetNameInfoA WS(getnameinfo)
INT WINAPI GetNameInfoW(const SOCKADDR*,WS(socklen_t),PWCHAR,DWORD,PWCHAR,DWORD,INT);
#define GetNameInfo WINELIB_NAME_AW(GetNameInfo)
PCSTR WINAPI WS(inet_ntop)(INT,PVOID,PSTR,size_t);
PCSTR WINAPI WS(inet_ntop)(INT,PVOID,PSTR,SIZE_T);
#define InetNtopA WS(inet_ntop)
PCWSTR WINAPI InetNtopW(INT,PVOID,PWSTR,size_t);
PCWSTR WINAPI InetNtopW(INT,PVOID,PWSTR,SIZE_T);
#define InetNtop WINELIB_NAME_AW(InetNtop)
int WINAPI WS(inet_pton)(INT,PCSTR,PVOID);
#define InetPtonA WS(inet_pton)