From eaae203e94563953883aeeed609affdb18022edb Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 12 Jan 2020 22:32:48 -0800 Subject: [PATCH] GUACAMOLE-249: Ensure RAIL message handlers are accepted by compiler regardless of whether const is required. --- src/protocols/rdp/channels/rail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/rdp/channels/rail.c b/src/protocols/rdp/channels/rail.c index 07b0babb..60ead636 100644 --- a/src/protocols/rdp/channels/rail.c +++ b/src/protocols/rdp/channels/rail.c @@ -164,8 +164,8 @@ static void guac_rdp_rail_channel_connected(rdpContext* context, /* Init FreeRDP RAIL context, ensuring the guac_client can be accessed from * within any RAIL-specific callbacks */ rail->custom = client; - rail->ServerHandshake = guac_rdp_rail_handshake; - rail->ServerHandshakeEx = guac_rdp_rail_handshake_ex; + rail->ServerHandshake = (pcRailServerHandshake) guac_rdp_rail_handshake; + rail->ServerHandshakeEx = (pcRailServerHandshakeEx) guac_rdp_rail_handshake_ex; guac_client_log(client, GUAC_LOG_DEBUG, "RAIL (RemoteApp) channel " "connected.");