wfreerdp: fix compilation and warnings

This commit is contained in:
Marc-André Moreau
2012-02-08 21:16:37 -05:00
parent caae69e980
commit 66ebfb0e9f
2 changed files with 11 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ void brush_cache_free(rdpBrushCache* brush)
{
if (brush->entries != NULL)
{
for (i = 0; i < brush->maxEntries; i++)
for (i = 0; i < (int) brush->maxEntries; i++)
{
if (brush->entries[i].entry != NULL)
xfree(brush->entries[i].entry);
@@ -171,7 +171,7 @@ void brush_cache_free(rdpBrushCache* brush)
if (brush->monoEntries != NULL)
{
for (i = 0; i < brush->maxMonoEntries; i++)
for (i = 0; i < (int) brush->maxMonoEntries; i++)
{
if (brush->monoEntries[i].entry != NULL)
xfree(brush->monoEntries[i].entry);

View File

@@ -20,14 +20,22 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <freerdp/types.h>
#include <freerdp/settings.h>
#include <freerdp/utils/memory.h>
#include <freerdp/utils/string.h>
#ifdef _WIN32
#include <direct.h>
#define getcwd _getcwd
#endif
#include <freerdp/utils/file.h>
#ifndef _WIN32