wininet: Avoid signed-unsigned integer comparisons.

This commit is contained in:
Andrew Talbot 2013-03-12 22:28:49 +00:00 committed by Alexandre Julliard
parent a424968482
commit ae77b3d368
3 changed files with 7 additions and 7 deletions

View file

@ -4050,7 +4050,7 @@ static WORD HTTP_ParseWkday(LPCWSTR day)
{ 't','h','u',0 },
{ 'f','r','i',0 },
{ 's','a','t',0 }};
int i;
unsigned int i;
for (i = 0; i < sizeof(days)/sizeof(*days); i++)
if (!strcmpiW(day, days[i]))
return i;
@ -4313,7 +4313,7 @@ static WORD HTTP_ParseWeekday(LPCWSTR day)
{ 't','h','u','r','s','d','a','y',0 },
{ 'f','r','i','d','a','y',0 },
{ 's','a','t','u','r','d','a','y',0 }};
int i;
unsigned int i;
for (i = 0; i < sizeof(days)/sizeof(*days); i++)
if (!strcmpiW(day, days[i]))
return i;

View file

@ -2836,7 +2836,7 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
case INTERNET_OPTION_PER_CONNECTION_OPTION: {
INTERNET_PER_CONN_OPTION_LISTW *con = lpBuffer;
LONG res;
int i;
unsigned int i;
proxyinfo_t pi;
INTERNET_LoadProxySettings(&pi);
@ -2950,7 +2950,7 @@ BOOL WINAPI InternetSetOptionA(HINTERNET hInternet, DWORD dwOption,
wbuffer, wlen );
break;
case INTERNET_OPTION_PER_CONNECTION_OPTION: {
int i;
unsigned int i;
INTERNET_PER_CONN_OPTION_LISTW *listW;
INTERNET_PER_CONN_OPTION_LISTA *listA = lpBuffer;
wlen = sizeof(INTERNET_PER_CONN_OPTION_LISTW);
@ -3019,7 +3019,7 @@ BOOL WINAPI InternetSetOptionA(HINTERNET hInternet, DWORD dwOption,
if (dwOption == INTERNET_OPTION_PER_CONNECTION_OPTION)
{
INTERNET_PER_CONN_OPTION_LISTW *list = wbuffer;
int i;
unsigned int i;
for (i = 0; i < list->dwOptionCount; ++i) {
INTERNET_PER_CONN_OPTIONW *opt = list->pOptions + i;
switch (opt->dwOption) {

View file

@ -477,7 +477,7 @@ static CRITICAL_SECTION init_ssl_cs = { &init_ssl_cs_debug, -1, 0, 0, 0, 0 };
static DWORD init_openssl(void)
{
#ifdef SONAME_LIBCRYPTO
int i;
unsigned int i;
if(OpenSSL_ssl_handle)
return ERROR_SUCCESS;
@ -730,7 +730,7 @@ void NETCON_unload(void)
}
if (ssl_locks)
{
int i;
unsigned int i;
for (i = 0; i < num_ssl_locks; i++)
{
ssl_locks[i].DebugInfo->Spare[0] = 0;