From 54938efc77d7b71f56306ca757385606d70ee9f5 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 24 Mar 2022 11:06:06 +0100 Subject: [PATCH] Removed function pointer casts --- server/Mac/mf_peer.c | 4 ++-- server/Windows/wf_peer.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/Mac/mf_peer.c b/server/Mac/mf_peer.c index c31f3662b..f02e4d0ae 100644 --- a/server/Mac/mf_peer.c +++ b/server/Mac/mf_peer.c @@ -237,8 +237,8 @@ static void mf_peer_context_free(freerdp_peer* client, mfPeerContext* context) static BOOL mf_peer_init(freerdp_peer* client) { client->ContextSize = sizeof(mfPeerContext); - client->ContextNew = (psPeerContextNew)mf_peer_context_new; - client->ContextFree = (psPeerContextFree)mf_peer_context_free; + client->ContextNew = mf_peer_context_new; + client->ContextFree = mf_peer_context_free; if (!freerdp_peer_context_new(client)) return FALSE; diff --git a/server/Windows/wf_peer.c b/server/Windows/wf_peer.c index 36e5bb08e..8a454c83a 100644 --- a/server/Windows/wf_peer.c +++ b/server/Windows/wf_peer.c @@ -82,8 +82,8 @@ static void wf_peer_context_free(freerdp_peer* client, wfPeerContext* context) static BOOL wf_peer_init(freerdp_peer* client) { client->ContextSize = sizeof(wfPeerContext); - client->ContextNew = (psPeerContextNew)wf_peer_context_new; - client->ContextFree = (psPeerContextFree)wf_peer_context_free; + client->ContextNew = wf_peer_context_new; + client->ContextFree = wf_peer_context_free; return freerdp_peer_context_new(client); }