From 541fc3a8c67307dfbb2761a77d8e267275ca6d9a Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 14 Nov 2024 11:14:36 +0100 Subject: [PATCH] [channels,remdesk] fix const correctness of function --- channels/remdesk/common/remdesk_common.c | 2 +- channels/remdesk/common/remdesk_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/remdesk/common/remdesk_common.c b/channels/remdesk/common/remdesk_common.c index 854547798..a4600e764 100644 --- a/channels/remdesk/common/remdesk_common.c +++ b/channels/remdesk/common/remdesk_common.c @@ -23,7 +23,7 @@ #include #define TAG CHANNELS_TAG("remdesk.common") -UINT remdesk_write_channel_header(wStream* s, REMDESK_CHANNEL_HEADER* header) +UINT remdesk_write_channel_header(wStream* s, const REMDESK_CHANNEL_HEADER* header) { WCHAR ChannelNameW[32] = { 0 }; diff --git a/channels/remdesk/common/remdesk_common.h b/channels/remdesk/common/remdesk_common.h index 76dddd0f1..98bd26b8a 100644 --- a/channels/remdesk/common/remdesk_common.h +++ b/channels/remdesk/common/remdesk_common.h @@ -25,7 +25,7 @@ #include -FREERDP_LOCAL UINT remdesk_write_channel_header(wStream* s, REMDESK_CHANNEL_HEADER* header); +FREERDP_LOCAL UINT remdesk_write_channel_header(wStream* s, const REMDESK_CHANNEL_HEADER* header); FREERDP_LOCAL UINT remdesk_write_ctl_header(wStream* s, const REMDESK_CTL_HEADER* ctlHeader); FREERDP_LOCAL UINT remdesk_read_channel_header(wStream* s, REMDESK_CHANNEL_HEADER* header); FREERDP_LOCAL UINT remdesk_prepare_ctl_header(REMDESK_CTL_HEADER* ctlHeader, UINT32 msgType,