diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-31 11:27:39 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-31 11:27:39 -0800 |
| commit | c0af14cf332003983d89dba3e48aef41e5a22463 (patch) | |
| tree | 21c0a67b365f95e5fb36a5209f65893bcdc4762f | |
| parent | 4be4ae5a80cf03a061a8d4a28f7a41a668b17301 (diff) | |
| download | nng-c0af14cf332003983d89dba3e48aef41e5a22463.tar.gz nng-c0af14cf332003983d89dba3e48aef41e5a22463.tar.bz2 nng-c0af14cf332003983d89dba3e48aef41e5a22463.zip | |
Can't use C99 in tests either.
| -rw-r--r-- | tests/idhash.c | 5 |
1 files 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); |
