localspl: Remove superfluous pointer casts.
Michael Stefaniuc
mstefani at redhat.de
Tue Jan 27 04:37:19 CST 2009
---
dlls/localspl/localmon.c | 8 ++++----
dlls/localspl/tests/localmon.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c
index ef35576..f4e1739 100644
--- a/dlls/localspl/localmon.c
+++ b/dlls/localspl/localmon.c
@@ -427,7 +427,7 @@ static BOOL WINAPI localmon_AddPortExW(LPWSTR pName, DWORD level, LPBYTE pBuffer
*/
static BOOL WINAPI localmon_ClosePort(HANDLE hPort)
{
- port_t * port = (port_t *) hPort;
+ port_t * port = hPort;
TRACE("(%p)\n", port);
EnterCriticalSection(&port_handles_cs);
@@ -531,7 +531,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort)
port->type = type;
memcpy(port->nameW, pName, len);
- *phPort = (HANDLE) port;
+ *phPort = port;
EnterCriticalSection(&port_handles_cs);
list_add_tail(&port_handles, &port->entry);
@@ -556,7 +556,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort)
*/
static BOOL WINAPI localmon_XcvClosePort(HANDLE hXcv)
{
- xcv_t * xcv = (xcv_t *) hXcv;
+ xcv_t * xcv = hXcv;
TRACE("(%p)\n", xcv);
/* No checks are done in Windows */
@@ -744,7 +744,7 @@ static BOOL WINAPI localmon_XcvOpenPort(LPCWSTR pName, ACCESS_MASK GrantedAccess
if (xcv) {
xcv->GrantedAccess = GrantedAccess;
memcpy(xcv->nameW, pName, len);
- *phXcv = (HANDLE) xcv;
+ *phXcv = xcv;
EnterCriticalSection(&xcv_handles_cs);
list_add_tail(&xcv_handles, &xcv->entry);
LeaveCriticalSection(&xcv_handles_cs);
diff --git a/dlls/localspl/tests/localmon.c b/dlls/localspl/tests/localmon.c
index 26eea89..23a3608 100644
--- a/dlls/localspl/tests/localmon.c
+++ b/dlls/localspl/tests/localmon.c
@@ -1347,7 +1347,7 @@ static void test_XcvOpenPort(void)
#define GET_MONITOR_FUNC(name) \
if(numentries > 0) { \
numentries--; \
- p##name = (void *) pm->Monitor.pfn##name ; \
+ p##name = pm->Monitor.pfn##name ; \
}
--
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090127/a5f044fd/attachment.pgp
More information about the wine-patches
mailing list