Fixed another bunch of warnings.

This commit is contained in:
Armin Novak 2018-10-24 14:36:12 +02:00
parent 02f68c35b9
commit 987ca5ec6a
6 changed files with 6 additions and 6 deletions

View File

@ -812,7 +812,7 @@ HttpResponse* http_response_recv(rdpTls* tls)
count = 0;
line = strtok(buffer, "\r\n");
while (line && response->lines)
while (line && (response->count > count))
{
response->lines[count] = line;

View File

@ -1578,7 +1578,7 @@ static BOOL update_message_process_update_class(rdpUpdateProxy* proxy, wMessage*
BOOL rc = FALSE;
if (!proxy || !msg)
return -1;
return FALSE;
switch (type)
{

View File

@ -105,7 +105,7 @@ const int fatal_signals[] =
int freerdp_handle_signals(void)
{
int signal_index;
size_t signal_index;
sigset_t orig_set;
struct sigaction orig_sigaction;
struct sigaction fatal_sigaction;

View File

@ -129,7 +129,7 @@ static BOOL CommInitialized()
}
void CommLog_Print(int level, ...)
void CommLog_Print(DWORD level, ...)
{
if (!CommInitialized())
return;

View File

@ -95,7 +95,7 @@ typedef struct winpr_comm WINPR_COMM;
#define FREERDP_PURGE_RXABORT 0x00000002 /* abort pending reception */
void CommLog_Print(int wlog_level, ...);
void CommLog_Print(DWORD wlog_level, ...);
BOOL CommIsHandled(HANDLE handle);
BOOL CommCloseHandle(HANDLE handle);

View File

@ -1150,7 +1150,7 @@ WINSCARDAPI LONG WINAPI PCSC_SCardLocateCardsByATRW(SCARDCONTEXT hContext,
WINSCARDAPI LONG WINAPI PCSC_SCardGetStatusChange_Internal(SCARDCONTEXT hContext,
DWORD dwTimeout, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
{
int i, j;
PCSC_DWORD i, j;
int* map;
PCSC_DWORD cMappedReaders;
PCSC_SCARD_READERSTATE* states;