diff --git a/libfreerdp/codec/region.c b/libfreerdp/codec/region.c index 48a794e7b..f47a69f8b 100644 --- a/libfreerdp/codec/region.c +++ b/libfreerdp/codec/region.c @@ -427,11 +427,11 @@ static BOOL region16_simplify_bands(REGION16* region) return TRUE; RECTANGLE_16* band1 = region16_rects_noconst(region); - const RECTANGLE_16* endPtr = band1 + nbRects; + RECTANGLE_16* endPtr = band1 + nbRects; do { - const RECTANGLE_16* band2 = next_band(band1, endPtr, &bandItems); + RECTANGLE_16* band2 = next_band(band1, endPtr, &bandItems); if (band2 == endPtr) break; diff --git a/libfreerdp/crypto/privatekey.c b/libfreerdp/crypto/privatekey.c index 13a77fc61..27277fb09 100644 --- a/libfreerdp/crypto/privatekey.c +++ b/libfreerdp/crypto/privatekey.c @@ -499,7 +499,7 @@ char* freerdp_key_get_param(const rdpPrivateKey* key, enum FREERDP_KEY_PARAM par fail: BN_free(bn); - return buf; + return (char*)buf; } WINPR_DIGEST_CTX* freerdp_key_digest_sign(rdpPrivateKey* key, WINPR_MD_TYPE digest) diff --git a/winpr/tools/makecert/makecert.c b/winpr/tools/makecert/makecert.c index 681709372..5af503ba4 100644 --- a/winpr/tools/makecert/makecert.c +++ b/winpr/tools/makecert/makecert.c @@ -735,7 +735,7 @@ static BOOL makecert_create_rsa(EVP_PKEY** ppkey, size_t key_length) if (EVP_PKEY_keygen_init(pctx) != 1) goto fail; - const unsigned int keylen = key_length; + unsigned int keylen = key_length; const OSSL_PARAM params[] = { OSSL_PARAM_construct_uint("bits", &keylen), OSSL_PARAM_construct_end() }; if (EVP_PKEY_CTX_set_params(pctx, params) != 1)