Fix a nb_dns.c compile error (older OSs) due to C90 vs C99.

This commit is contained in:
Jon Siwek 2017-11-21 11:30:55 -06:00
parent 82a51e0731
commit deced3795c
3 changed files with 8 additions and 2 deletions

View file

@ -132,7 +132,9 @@ nb_dns_init(char *errstr)
return (NULL);
}
for ( int i = 0; i < _res.nscount; ++i )
int i;
for ( i = 0; i < _res.nscount; ++i )
{
nd->server = _res.nsaddr_list[i];