From c0af14cf332003983d89dba3e48aef41e5a22463 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 31 Dec 2016 11:27:39 -0800 Subject: Can't use C99 in tests either. --- tests/idhash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/idhash.c b/tests/idhash.c index 73e5f741..18ca2fec 100644 --- a/tests/idhash.c +++ b/tests/idhash.c @@ -95,8 +95,9 @@ Main({ int expect[1024]; int actual[1024]; int rv; + int i; - for (int i = 0; i < 1024; i++) { + for (i = 0; i < 1024; i++) { expect[i] = i; } Convey("Given an id hash", { @@ -114,7 +115,7 @@ Main({ Convey("We can insert 1024 items", { uint32_t count; - for (int i = 0; i < 1024; i++) { + for (i = 0; i < 1024; i++) { nni_idhash_insert(h, i, &expect[i]); } So(nni_idhash_count(h, &count) == 0); -- cgit v1.2.3-70-g09d2