test: replace another C99-style declaration in for loop
This commit is contained in:
parent
ad37c409c9
commit
7fe98a83b8
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue