winhttp: Remove superfluous pointer casts.

This commit is contained in:
Michael Stefaniuc 2009-02-05 09:53:49 +01:00 committed by Alexandre Julliard
parent e89386a59e
commit 7dbba8c335
2 changed files with 3 additions and 3 deletions

View File

@ -607,7 +607,7 @@ BOOL netconn_resolve( WCHAR *hostnameW, INTERNET_PORT port, struct sockaddr_in *
return FALSE;
}
memset( sa, 0, sizeof(struct sockaddr_in) );
memcpy( (char *)&sa->sin_addr, he->h_addr, he->h_length );
memcpy( &sa->sin_addr, he->h_addr, he->h_length );
sa->sin_family = he->h_addrtype;
sa->sin_port = htons( port );

View File

@ -566,7 +566,7 @@ static BOOL query_headers( request_t *request, DWORD level, LPCWSTR name, LPVOID
}
else if (buffer)
{
for (p = headers, q = (WCHAR *)buffer; *p; p++, q++)
for (p = headers, q = buffer; *p; p++, q++)
{
if (*p != '\r') *q = *p;
else
@ -576,7 +576,7 @@ static BOOL query_headers( request_t *request, DWORD level, LPCWSTR name, LPVOID
}
}
*q = 0;
TRACE("returning data: %s\n", debugstr_wn((WCHAR *)buffer, len));
TRACE("returning data: %s\n", debugstr_wn(buffer, len));
ret = TRUE;
}
*buflen = len * sizeof(WCHAR);