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

@ -1,4 +1,8 @@
2.5-348 | 2017-11-21 11:30:55 -0600
* Fix a nb_dns.c compile error (older OSs) due to C90 vs C99. (Corelight)
2.5-347 | 2017-11-20 14:00:37 -0600 2.5-347 | 2017-11-20 14:00:37 -0600
* Fix and extend behavior of HookLoadFile. (Corelight) * Fix and extend behavior of HookLoadFile. (Corelight)

View file

@ -1 +1 @@
2.5-347 2.5-348

View file

@ -132,7 +132,9 @@ nb_dns_init(char *errstr)
return (NULL); 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]; nd->server = _res.nsaddr_list[i];