Fixed missing const casts

This commit is contained in:
akallabeth 2022-11-14 10:17:03 +01:00 committed by Bernhard Miklautz
parent bf0ce5bf3a
commit aaae70ff05
3 changed files with 6 additions and 6 deletions

View File

@ -256,13 +256,13 @@ static BOOL channelIdMatch(const void* k1, const void* k2)
{
WINPR_ASSERT(k1);
WINPR_ASSERT(k2);
return *((UINT32*)k1) == *((UINT32*)k2);
return *((const UINT32*)k1) == *((const UINT32*)k2);
}
static UINT32 channelIdHash(const void* id)
{
WINPR_ASSERT(id);
return *((UINT32*)id);
return *((const UINT32*)id);
}
static void channelByIdCleanerFn(void* value)

View File

@ -2693,7 +2693,7 @@ BOOL license_server_configure(rdpLicense* license)
UINT32 ProductVersion, issuerCount;
const char* CompanyName;
const char* ProductName;
const char** issuers;
const char* const* issuers;
WINPR_ASSERT(license);
WINPR_ASSERT(license->rdp);
@ -2705,8 +2705,8 @@ BOOL license_server_configure(rdpLicense* license)
ProductName = freerdp_settings_get_string(settings, FreeRDP_ServerLicenseProductName);
ProductVersion = freerdp_settings_get_uint32(settings, FreeRDP_ServerLicenseProductVersion);
issuerCount = freerdp_settings_get_uint32(settings, FreeRDP_ServerLicenseProductIssuersCount);
issuers =
(const char**)freerdp_settings_get_pointer(settings, FreeRDP_ServerLicenseProductIssuers);
issuers = (const char* const*)freerdp_settings_get_pointer(settings,
FreeRDP_ServerLicenseProductIssuers);
WINPR_ASSERT(CompanyName);
WINPR_ASSERT(ProductName);

View File

@ -687,7 +687,7 @@ char* parse_uri_to_local_file(const char* uri, size_t uri_len)
if (is_dos_drive(&uri[prefixLen + 1], uri_len - prefixLen - 1))
{
// Dos and Windows file URI
localName = (char*)(uri + prefixLen + 1);
localName = (const char*)(uri + prefixLen + 1);
localLen = uri_len - prefixLen - 1;
}
else