[warnings] fixed -Wpointer-sign

This commit is contained in:
Armin Novak 2023-12-13 10:12:57 +01:00 committed by akallabeth
parent 7c1d83445e
commit d6b7cfc1c2
2 changed files with 3 additions and 3 deletions

View File

@ -1142,7 +1142,7 @@ BOOL client_common_get_access_token(freerdp* instance, const char* request, char
goto cleanup;
}
*token = freerdp_utils_aad_get_access_token(log, response, response_length);
*token = (const char*)freerdp_utils_aad_get_access_token(log, response, response_length);
if (*token)
ret = TRUE;

View File

@ -793,7 +793,7 @@ static BOOL arm_fill_gateway_parameters(rdpArm* arm, const char* message, size_t
static BOOL arm_handle_request_ok(rdpArm* arm, const HttpResponse* response)
{
const size_t len = http_response_get_body_length(response);
const char* msg = http_response_get_body(response);
const char* msg = (const char*)http_response_get_body(response);
if (strnlen(msg, len + 1) > len)
return FALSE;
@ -811,7 +811,7 @@ static BOOL arm_handle_bad_request(rdpArm* arm, const HttpResponse* response, BO
BOOL rc = FALSE;
const size_t len = http_response_get_body_length(response);
const char* msg = http_response_get_body(response);
const char* msg = (const char*)http_response_get_body(response);
if (strnlen(msg, len + 1) > len)
return FALSE;