Alexandre Julliard : ws2_32: Use SIZE_T instead of size_t for inet_ntop argument.

Alexandre Julliard julliard at winehq.org
Wed Apr 29 10:20:22 CDT 2009


Module: wine
Branch: master
Commit: 445567ea955f2f4096983539da4671e84ed0fbfb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=445567ea955f2f4096983539da4671e84ed0fbfb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Apr 29 15:52:29 2009 +0200

ws2_32: Use SIZE_T instead of size_t for inet_ntop argument.

---

 dlls/ws2_32/socket.c |    4 ++--
 include/ws2tcpip.h   |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index dddc9af..5516260 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -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:
diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h
index 6f1293f..0461a81 100644
--- a/include/ws2tcpip.h
+++ b/include/ws2tcpip.h
@@ -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)




More information about the wine-cvs mailing list