aboutsummaryrefslogtreecommitdiff
path: root/src/core/device.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/device.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/device.c')
-rw-r--r--src/core/device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/device.c b/src/core/device.c
index 7b2b5b87..7d0454bd 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -56,7 +56,6 @@ static void
nni_device_rev(void *p)
{
nni_device_pair *pair = p;
- int rv;
pair->err[1] = nni_device_loop(pair->socks[1], pair->socks[0]);
nni_sock_shutdown(pair->socks[0]);