Merge pull request #4611 from akallabeth/argument_warnings

Argument warnings
This commit is contained in:
Martin Fleisz 2018-05-04 10:06:42 +02:00 committed by GitHub
commit 99346d19c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1425,8 +1425,8 @@ static UINT xf_cliprdr_server_format_data_response(CliprdrClientContext*
if (!pDstData)
{
WLog_ERR(TAG, "failed to get clipboard data in format %s [source format %s]",
ClipboardGetFormatName(clipboard, dstFormatId),
ClipboardGetFormatName(clipboard, srcFormatId));
ClipboardGetFormatName(clipboard->system, dstFormatId),
ClipboardGetFormatName(clipboard->system, srcFormatId));
return ERROR_INTERNAL_ERROR;
}

View File

@ -1191,7 +1191,7 @@ int freerdp_tcp_connect(rdpContext* context, rdpSettings* settings,
return -1;
}
if ((peerAddress = freerdp_tcp_address_to_string(addr->ai_addr, NULL)) != NULL)
if ((peerAddress = freerdp_tcp_address_to_string((struct sockaddr_storage*)addr->ai_addr, NULL)) != NULL)
{
WLog_DBG(TAG, "connecting to peer %s", peerAddress);
free(peerAddress);