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

This commit is contained in:
Rob Shearman 2007-01-04 18:21:24 +00:00 committed by Alexandre Julliard
parent 14fb418942
commit 09dbb1b5a0
1 changed files with 2 additions and 2 deletions

View File

@ -2289,7 +2289,7 @@ lend:
static BOOL FTP_InitListenSocket(LPWININETFTPSESSIONW lpwfs) static BOOL FTP_InitListenSocket(LPWININETFTPSESSIONW lpwfs)
{ {
BOOL bSuccess = FALSE; BOOL bSuccess = FALSE;
size_t namelen = sizeof(struct sockaddr_in); socklen_t namelen = sizeof(struct sockaddr_in);
TRACE("\n"); TRACE("\n");
@ -2579,7 +2579,7 @@ static BOOL FTP_SendPortOrPasv(LPWININETFTPSESSIONW lpwfs)
static BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket) static BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket)
{ {
struct sockaddr_in saddr; struct sockaddr_in saddr;
size_t addrlen = sizeof(struct sockaddr); socklen_t addrlen = sizeof(struct sockaddr);
TRACE("\n"); TRACE("\n");
if (lpwfs->hdr.dwFlags & INTERNET_FLAG_PASSIVE) if (lpwfs->hdr.dwFlags & INTERNET_FLAG_PASSIVE)