aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-01-15 22:16:09 -0800
committerGarrett D'Amore <garrett@damore.org>2020-01-16 20:22:15 -0800
commit1cf3205d805be83e17ce096305d6eaef94e3a4d2 (patch)
treecc726655772c9ba3682228889504adb562a5406a /src/nng.c
parent49ea4dd5ec717303caeaef7f6f4efd10c90c94e1 (diff)
downloadnng-1cf3205d805be83e17ce096305d6eaef94e3a4d2.tar.gz
nng-1cf3205d805be83e17ce096305d6eaef94e3a4d2.tar.bz2
nng-1cf3205d805be83e17ce096305d6eaef94e3a4d2.zip
RESPOND needs to use atomic for TTL.
Also, add a test to cover the RESPOND protocol. This gets about 95% of the coverage.
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nng.c b/src/nng.c
index b3179988..d758adab 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -1,5 +1,5 @@
//
-// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -43,7 +43,7 @@ nng_close(nng_socket s)
}
// No release -- close releases it.
nni_sock_close(sock);
- return (rv);
+ return (0);
}
int