mirror of https://github.com/FreeRDP/FreeRDP
[warnings] fixed -Wpointer-sign
This commit is contained in:
parent
7c1d83445e
commit
d6b7cfc1c2
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue