aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-31 11:27:39 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-31 11:27:39 -0800
commitc0af14cf332003983d89dba3e48aef41e5a22463 (patch)
tree21c0a67b365f95e5fb36a5209f65893bcdc4762f
parent4be4ae5a80cf03a061a8d4a28f7a41a668b17301 (diff)
downloadnng-c0af14cf332003983d89dba3e48aef41e5a22463.tar.gz
nng-c0af14cf332003983d89dba3e48aef41e5a22463.tar.bz2
nng-c0af14cf332003983d89dba3e48aef41e5a22463.zip
Can't use C99 in tests either.
-rw-r--r--tests/idhash.c5
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);