test: replace another C99-style declaration in for loop

This commit is contained in:
Miroslav Lichvar 2024-03-11 11:59:11 +01:00
parent ad37c409c9
commit 7fe98a83b8

View file

@ -39,8 +39,9 @@ static void
test_leap_source(NTP_Leap (*fn)(time_t when, int *tai_offset),
int skip_fakes)
{
int prev_tai_offset = 34;
for (int i = 0; i < sizeof tests / sizeof tests[0]; ++i) {
int i, prev_tai_offset = 34;
for (i = 0; i < sizeof tests / sizeof tests[0]; ++i) {
struct test_vector *t = tests + i;
NTP_Leap leap;