[server,proxy] fix function pointer type warning

This commit is contained in:
akallabeth 2023-09-22 14:59:22 +02:00 committed by akallabeth
parent 86acc8d31a
commit 6ff4db76bd

View File

@ -89,6 +89,12 @@ void StaticChannelContext_free(pServerStaticChannelContext* ctx)
free(ctx);
}
static void HashStaticChannelContext_free(void* ptr)
{
pServerStaticChannelContext* ctx = (pServerStaticChannelContext*)ptr;
StaticChannelContext_free(ctx);
}
/* Proxy context initialization callback */
static void client_to_proxy_context_free(freerdp_peer* client, rdpContext* ctx);
static BOOL client_to_proxy_context_new(freerdp_peer* client, rdpContext* ctx)
@ -129,7 +135,7 @@ static BOOL client_to_proxy_context_new(freerdp_peer* client, rdpContext* ctx)
obj->fnObjectEquals = ChannelId_Compare;
obj = HashTable_ValueObject(context->channelsByFrontId);
obj->fnObjectFree = StaticChannelContext_free;
obj->fnObjectFree = HashStaticChannelContext_free;
context->channelsByBackId = HashTable_New(FALSE);
if (!context->channelsByBackId)