aboutsummaryrefslogtreecommitdiff
path: root/src/core/objhash.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-07 18:41:56 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-07 18:41:56 -0700
commit3cedf14c3586b0770cb9ee62c75f922ab2006153 (patch)
tree2fd6422cd97f91330896a47ba5e68c20705f2c28 /src/core/objhash.c
parent021d09af1375834fe9aaca916e60dcd2ad3be845 (diff)
downloadnng-3cedf14c3586b0770cb9ee62c75f922ab2006153.tar.gz
nng-3cedf14c3586b0770cb9ee62c75f922ab2006153.tar.bz2
nng-3cedf14c3586b0770cb9ee62c75f922ab2006153.zip
SRWLocks FTW!
Modern Windows (Vista and later) have light weight Slim Read/Write locks which only occupy 64 bits, and don't require any memory allocation to create. While here clean up a few more unreferenced variables found with the Microsoft compilers.
Diffstat (limited to 'src/core/objhash.c')
-rw-r--r--src/core/objhash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/objhash.c b/src/core/objhash.c
index 99ab7560..da4c6012 100644
--- a/src/core/objhash.c
+++ b/src/core/objhash.c
@@ -137,7 +137,6 @@ nni_objhash_find_node(nni_objhash *oh, uint32_t id)
int
nni_objhash_find(nni_objhash *oh, uint32_t id, void **valp)
{
- uint32_t index;
nni_objhash_node *node;
int rv;
@@ -242,7 +241,6 @@ nni_objhash_resize(nni_objhash *oh, int grow)
void
nni_objhash_unref(nni_objhash *oh, uint32_t id)
{
- int rv;
void *val;
uint32_t index;
nni_objhash_node *node;
@@ -309,7 +307,6 @@ nni_objhash_unref(nni_objhash *oh, uint32_t id)
void
nni_objhash_unref_wait(nni_objhash *oh, uint32_t id)
{
- int rv;
void *val;
uint32_t index;
nni_objhash_node *node;