Michael Stefaniuc : services: Remove superfluous pointer casts.
Alexandre Julliard
julliard at winehq.org
Thu Jan 29 09:15:40 CST 2009
Module: wine
Branch: master
Commit: 24c4f1de95c3fd8dbc579fb90985544c40441c27
URL: http://source.winehq.org/git/wine.git/?a=commit;h=24c4f1de95c3fd8dbc579fb90985544c40441c27
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Jan 29 11:15:03 2009 +0100
services: Remove superfluous pointer casts.
---
programs/services/rpc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/services/rpc.c b/programs/services/rpc.c
index 9fd66a2..99180bb 100644
--- a/programs/services/rpc.c
+++ b/programs/services/rpc.c
@@ -87,7 +87,7 @@ struct sc_lock
/* Check if the given handle is of the required type and allows the requested access. */
static DWORD validate_context_handle(SC_RPC_HANDLE handle, DWORD type, DWORD needed_access, struct sc_handle **out_hdr)
{
- struct sc_handle *hdr = (struct sc_handle *)handle;
+ struct sc_handle *hdr = handle;
if (type != SC_HTYPE_DONT_CARE && hdr->type != type)
{
@@ -158,7 +158,7 @@ DWORD svcctl_OpenSCManagerW(
static void SC_RPC_HANDLE_destroy(SC_RPC_HANDLE handle)
{
- struct sc_handle *hdr = (struct sc_handle *)handle;
+ struct sc_handle *hdr = handle;
switch (hdr->type)
{
case SC_HTYPE_MANAGER:
More information about the wine-cvs
mailing list