[server,proxy] fix function pointer type warning
This commit is contained in:
parent
86acc8d31a
commit
6ff4db76bd
@ -89,6 +89,12 @@ void StaticChannelContext_free(pServerStaticChannelContext* ctx)
|
|||||||
free(ctx);
|
free(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void HashStaticChannelContext_free(void* ptr)
|
||||||
|
{
|
||||||
|
pServerStaticChannelContext* ctx = (pServerStaticChannelContext*)ptr;
|
||||||
|
StaticChannelContext_free(ctx);
|
||||||
|
}
|
||||||
|
|
||||||
/* Proxy context initialization callback */
|
/* Proxy context initialization callback */
|
||||||
static void client_to_proxy_context_free(freerdp_peer* client, rdpContext* ctx);
|
static void client_to_proxy_context_free(freerdp_peer* client, rdpContext* ctx);
|
||||||
static BOOL client_to_proxy_context_new(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->fnObjectEquals = ChannelId_Compare;
|
||||||
|
|
||||||
obj = HashTable_ValueObject(context->channelsByFrontId);
|
obj = HashTable_ValueObject(context->channelsByFrontId);
|
||||||
obj->fnObjectFree = StaticChannelContext_free;
|
obj->fnObjectFree = HashStaticChannelContext_free;
|
||||||
|
|
||||||
context->channelsByBackId = HashTable_New(FALSE);
|
context->channelsByBackId = HashTable_New(FALSE);
|
||||||
if (!context->channelsByBackId)
|
if (!context->channelsByBackId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user