aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-21 20:05:33 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-21 20:05:33 -0800
commitdc48f6afe9c5d5c8700f756ff0b3f0860f087d9d (patch)
tree9ce52e33dbda954075635636d26a3e07b8d57801
parent568a84ed2d3d41da5ca64cde15a677237fffd991 (diff)
downloadnng-dc48f6afe9c5d5c8700f756ff0b3f0860f087d9d.tar.gz
nng-dc48f6afe9c5d5c8700f756ff0b3f0860f087d9d.tar.bz2
nng-dc48f6afe9c5d5c8700f756ff0b3f0860f087d9d.zip
Fix compilation warnings found on Windows.
-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]);
}