test: avoid C99-style declaration in for loop

This fixes compilation without the -std=c99 option with an older gcc.
This commit is contained in:
Miroslav Lichvar 2024-02-12 14:42:03 +01:00
parent 008dc16727
commit ad79aec946

View file

@ -77,9 +77,10 @@ test_unit(void)
"leapsectz right/UTC",
"leapseclist leapdb.list"
};
int i;
CNF_Initialise(0, 0);
for (int i = 0; i < sizeof conf / sizeof conf[0]; i++)
for (i = 0; i < sizeof conf / sizeof conf[0]; i++)
CNF_ParseLine(NULL, i + 1, conf[i]);
LDB_Initialise();