mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 17:25:06 -05:00
test: replace another C99-style declaration in for loop
This commit is contained in:
@@ -39,8 +39,9 @@ static void
|
|||||||
test_leap_source(NTP_Leap (*fn)(time_t when, int *tai_offset),
|
test_leap_source(NTP_Leap (*fn)(time_t when, int *tai_offset),
|
||||||
int skip_fakes)
|
int skip_fakes)
|
||||||
{
|
{
|
||||||
int prev_tai_offset = 34;
|
int i, prev_tai_offset = 34;
|
||||||
for (int i = 0; i < sizeof tests / sizeof tests[0]; ++i) {
|
|
||||||
|
for (i = 0; i < sizeof tests / sizeof tests[0]; ++i) {
|
||||||
struct test_vector *t = tests + i;
|
struct test_vector *t = tests + i;
|
||||||
|
|
||||||
NTP_Leap leap;
|
NTP_Leap leap;
|
||||||
|
|||||||
Reference in New Issue
Block a user