Commit a9b4a471 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

Fix signed/unsigned comparison warnings.

parent 0369da5c
......@@ -283,7 +283,7 @@ static const struct iocodexs
};
static const char *iocodex(DWORD code)
{
int i;
unsigned int i;
static char buffer[25];
for(i=0; i<sizeof(iocodextable)/sizeof(struct iocodexs); i++)
if (code==iocodextable[i].code)
......
......@@ -654,7 +654,7 @@ NTSTATUS WINAPI NtQueryDirectoryFile( HANDLE handle, HANDLE event,
{
int cwd, fd;
FILE_BOTH_DIR_INFORMATION *info, *last_info = NULL;
static const int max_dir_info_size = sizeof(*info) + (MAX_DIR_ENTRY_LEN-1) * sizeof(WCHAR);
static const unsigned int max_dir_info_size = sizeof(*info) + (MAX_DIR_ENTRY_LEN-1) * sizeof(WCHAR);
TRACE("(%p %p %p %p %p %p 0x%08lx 0x%08x 0x%08x %s 0x%08x\n",
handle, event, apc_routine, apc_context, io, buffer,
......@@ -966,7 +966,8 @@ static NTSTATUS get_dos_device( const WCHAR *name, UINT name_len, ANSI_STRING *u
const char *config_dir = wine_get_config_dir();
struct stat st;
char *unix_name, *new_name, *dev;
int i, unix_len;
unsigned int i;
int unix_len;
/* make sure the device name is ASCII */
for (i = 0; i < name_len; i++)
......
......@@ -793,7 +793,7 @@ BOOLEAN WINAPI RtlIsNameLegalDOS8Dot3( const UNICODE_STRING *unicode,
{
static const char* illegal = "*?<>|\"+=,;[]:/\\\345";
int dot = -1;
unsigned int i;
int i;
char buffer[12];
OEM_STRING oem_str;
BOOLEAN got_space = FALSE;
......
......@@ -459,7 +459,7 @@ NTSTATUS WINAPI NtQueryValueKey( HKEY handle, const UNICODE_STRING *name,
{
NTSTATUS ret;
UCHAR *data_ptr;
int fixed_size = 0;
unsigned int fixed_size = 0;
TRACE( "(%p,%s,%d,%p,%ld)\n", handle, debugstr_us(name), info_class, info, length );
......
......@@ -364,7 +364,7 @@ static BOOL check_from_module( const WCHAR **includelist, const WCHAR **excludel
static const char *find_exported_name( HMODULE module,
IMAGE_EXPORT_DIRECTORY *exp, int ordinal )
{
int i;
unsigned int i;
const char *ret = NULL;
WORD *ordptr = (WORD *)((char *)module + exp->AddressOfNameOrdinals);
......@@ -738,7 +738,7 @@ void RELAY_SetupDLL( HMODULE module )
IMAGE_EXPORT_DIRECTORY *exports;
DEBUG_ENTRY_POINT *debug;
DWORD *funcs;
int i;
unsigned int i;
const char *name;
char *p, dllname[80];
DWORD size;
......@@ -862,7 +862,7 @@ FARPROC SNOOP_GetProcAddress( HMODULE hmod, const IMAGE_EXPORT_DIRECTORY *export
DWORD exp_size, FARPROC origfun, DWORD ordinal,
const WCHAR *user)
{
int i;
unsigned int i;
const char *ename;
const WORD *ordinals;
const DWORD *names;
......
......@@ -371,7 +371,7 @@ NTSTATUS WINAPI RtlFindMessage( HMODULE hmod, ULONG type, ULONG lang,
LDR_RESOURCE_INFO info;
NTSTATUS status;
void *ptr;
int i;
unsigned int i;
info.Type = type;
info.Name = 1;
......
......@@ -163,7 +163,8 @@ void server_protocol_perror( const char *err )
*/
static void send_request( const struct __server_request_info *req )
{
int i, ret;
unsigned int i;
int ret;
if (!req->u.req.request_header.request_size)
{
......
......@@ -735,7 +735,7 @@ static const WCHAR* TIME_GetTZAsStr (time_t utc, int bias, int dst)
{
char psTZName[7];
struct tm *ptm = localtime(&utc);
int i;
unsigned int i;
if (!strftime (psTZName, 7, "%Z", ptm))
return (NULL);
......
......@@ -381,7 +381,7 @@ static DWORD VERSION_GetLinkedDllVersion(void)
const WCHAR *name;
PLIST_ENTRY mark, entry;
PLDR_MODULE mod;
int i;
unsigned int i;
/* First check the native dlls provided. These have to be
from one windows version */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment