]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: replace another C99-style declaration in for loop
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 Mar 2024 10:59:11 +0000 (11:59 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 Mar 2024 11:00:12 +0000 (12:00 +0100)
test/unit/leapdb.c

index 2344fb3d055ed02dc647c8a98992cf5d8254a209..f2f0228fadb80acd611c55424327192ba078bfb8 100644 (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;