mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 19:35:06 -05:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user