Rob Shearman : wininet: Use correct types for socket functions to avoid warnings when compiling on BSD-based systems .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 4 15:09:28 CST 2007


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Jan  4 18:21:24 2007 +0000

wininet: Use correct types for socket functions to avoid warnings when compiling on BSD-based systems.

---

 dlls/wininet/ftp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index e473b5b..7ae70c1 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -2289,7 +2289,7 @@ lend:
 static BOOL FTP_InitListenSocket(LPWININETFTPSESSIONW lpwfs)
 {
     BOOL bSuccess = FALSE;
-    size_t namelen = sizeof(struct sockaddr_in);
+    socklen_t namelen = sizeof(struct sockaddr_in);
 
     TRACE("\n");
 
@@ -2579,7 +2579,7 @@ static BOOL FTP_SendPortOrPasv(LPWININET
 static BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket)
 {
     struct sockaddr_in saddr;
-    size_t addrlen = sizeof(struct sockaddr);
+    socklen_t addrlen = sizeof(struct sockaddr);
 
     TRACE("\n");
     if (lpwfs->hdr.dwFlags & INTERNET_FLAG_PASSIVE)




More information about the wine-cvs mailing list