Commit 56f57693 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

localspl: Remove superfluous pointer casts.

parent 2c5da7de
...@@ -427,7 +427,7 @@ static BOOL WINAPI localmon_AddPortExW(LPWSTR pName, DWORD level, LPBYTE pBuffer ...@@ -427,7 +427,7 @@ static BOOL WINAPI localmon_AddPortExW(LPWSTR pName, DWORD level, LPBYTE pBuffer
*/ */
static BOOL WINAPI localmon_ClosePort(HANDLE hPort) static BOOL WINAPI localmon_ClosePort(HANDLE hPort)
{ {
port_t * port = (port_t *) hPort; port_t * port = hPort;
TRACE("(%p)\n", port); TRACE("(%p)\n", port);
EnterCriticalSection(&port_handles_cs); EnterCriticalSection(&port_handles_cs);
...@@ -531,7 +531,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort) ...@@ -531,7 +531,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort)
port->type = type; port->type = type;
memcpy(port->nameW, pName, len); memcpy(port->nameW, pName, len);
*phPort = (HANDLE) port; *phPort = port;
EnterCriticalSection(&port_handles_cs); EnterCriticalSection(&port_handles_cs);
list_add_tail(&port_handles, &port->entry); list_add_tail(&port_handles, &port->entry);
...@@ -556,7 +556,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort) ...@@ -556,7 +556,7 @@ static BOOL WINAPI localmon_OpenPortW(LPWSTR pName, PHANDLE phPort)
*/ */
static BOOL WINAPI localmon_XcvClosePort(HANDLE hXcv) static BOOL WINAPI localmon_XcvClosePort(HANDLE hXcv)
{ {
xcv_t * xcv = (xcv_t *) hXcv; xcv_t * xcv = hXcv;
TRACE("(%p)\n", xcv); TRACE("(%p)\n", xcv);
/* No checks are done in Windows */ /* No checks are done in Windows */
...@@ -744,7 +744,7 @@ static BOOL WINAPI localmon_XcvOpenPort(LPCWSTR pName, ACCESS_MASK GrantedAccess ...@@ -744,7 +744,7 @@ static BOOL WINAPI localmon_XcvOpenPort(LPCWSTR pName, ACCESS_MASK GrantedAccess
if (xcv) { if (xcv) {
xcv->GrantedAccess = GrantedAccess; xcv->GrantedAccess = GrantedAccess;
memcpy(xcv->nameW, pName, len); memcpy(xcv->nameW, pName, len);
*phXcv = (HANDLE) xcv; *phXcv = xcv;
EnterCriticalSection(&xcv_handles_cs); EnterCriticalSection(&xcv_handles_cs);
list_add_tail(&xcv_handles, &xcv->entry); list_add_tail(&xcv_handles, &xcv->entry);
LeaveCriticalSection(&xcv_handles_cs); LeaveCriticalSection(&xcv_handles_cs);
......
...@@ -1347,7 +1347,7 @@ static void test_XcvOpenPort(void) ...@@ -1347,7 +1347,7 @@ static void test_XcvOpenPort(void)
#define GET_MONITOR_FUNC(name) \ #define GET_MONITOR_FUNC(name) \
if(numentries > 0) { \ if(numentries > 0) { \
numentries--; \ numentries--; \
p##name = (void *) pm->Monitor.pfn##name ; \ p##name = pm->Monitor.pfn##name ; \
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment