From 7fe98a83b867c1821b6f51c2ed8b3374825dfafd Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 11 Mar 2024 11:59:11 +0100 Subject: [PATCH] test: replace another C99-style declaration in for loop --- test/unit/leapdb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/leapdb.c b/test/unit/leapdb.c index 2344fb3..f2f0228 100644 --- a/test/unit/leapdb.c +++ b/test/unit/leapdb.c @@ -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;