aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/idhash.c4
-rw-r--r--tests/idhash.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/idhash.c b/src/core/idhash.c
index 07368a65..4af06b0e 100644
--- a/src/core/idhash.c
+++ b/src/core/idhash.c
@@ -106,8 +106,8 @@ nni_idhash_find(nni_idhash *h, uint32_t id, void **valp)
static int
nni_hash_resize(nni_idhash *h)
{
- uint32_t newsize;
- uint32_t oldsize;
+ size_t newsize;
+ size_t oldsize;
nni_idhash_entry *newents;
nni_idhash_entry *oldents;
uint32_t i;
diff --git a/tests/idhash.c b/tests/idhash.c
index 50a8d976..a51db654 100644
--- a/tests/idhash.c
+++ b/tests/idhash.c
@@ -79,7 +79,6 @@ Main({
Test("Resize ID Hash", {
int expect[1024];
- int rv;
int i;
for (i = 0; i < 1024; i++) {
@@ -96,7 +95,6 @@ Main({
})
Convey("We can insert 1024 items", {
- uint32_t count;
for (i = 0; i < 1024; i++) {
nni_idhash_insert(&h, i, &expect[i]);
}