Michael Stefaniuc : winhttp: Remove superfluous pointer casts.
Alexandre Julliard
julliard at winehq.org
Thu Feb 5 09:21:15 CST 2009
Module: wine
Branch: master
Commit: 7dbba8c335c026e5f84233d97e25f3524152376d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7dbba8c335c026e5f84233d97e25f3524152376d
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Feb 5 09:53:49 2009 +0100
winhttp: Remove superfluous pointer casts.
---
dlls/winhttp/net.c | 2 +-
dlls/winhttp/request.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 2e37b1c..201a1cb 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -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 );
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 29969ba..ddfac13 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -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);
More information about the wine-cvs
mailing list