Commit 5ca83ae5 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dnsapi: Sign-compare warnings fix.

parent 61aac4a0
...@@ -561,7 +561,7 @@ exit: ...@@ -561,7 +561,7 @@ exit:
*/ */
static DNS_STATUS dns_set_serverlist( const IP4_ARRAY *addrs ) static DNS_STATUS dns_set_serverlist( const IP4_ARRAY *addrs )
{ {
unsigned int i; int i;
if (addrs->AddrCount > MAXNS) if (addrs->AddrCount > MAXNS)
{ {
...@@ -579,7 +579,8 @@ static DNS_STATUS dns_set_serverlist( const IP4_ARRAY *addrs ) ...@@ -579,7 +579,8 @@ static DNS_STATUS dns_set_serverlist( const IP4_ARRAY *addrs )
static DNS_STATUS dns_get_serverlist( PIP4_ARRAY addrs, PDWORD len ) static DNS_STATUS dns_get_serverlist( PIP4_ARRAY addrs, PDWORD len )
{ {
unsigned int i, size; unsigned int size;
int i;
size = sizeof(IP4_ARRAY) + sizeof(IP4_ADDRESS) * (_res.nscount - 1); size = sizeof(IP4_ARRAY) + sizeof(IP4_ADDRESS) * (_res.nscount - 1);
if (!addrs || *len < size) if (!addrs || *len < size)
......
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