aboutsummaryrefslogtreecommitdiff
path: root/tests/pair1.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-11 13:58:06 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-11 13:58:06 -0700
commit674a3ed159c0a6ec9b62208837c388502ed80088 (patch)
tree11a2764a8f205ffc230971949108daec80b59f0b /tests/pair1.c
parent69e8b1517c6d84f30367c5c32e7426d81dc28265 (diff)
downloadnng-674a3ed159c0a6ec9b62208837c388502ed80088.tar.gz
nng-674a3ed159c0a6ec9b62208837c388502ed80088.tar.bz2
nng-674a3ed159c0a6ec9b62208837c388502ed80088.zip
Windows fixes; especially idempotent init/fini.
This fixes one major problem, which was that if nni_fini() was called once on Windows, it would not be further possible to call nni_init(). While here fixed a few compilation issues.
Diffstat (limited to 'tests/pair1.c')
-rw-r--r--tests/pair1.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/pair1.c b/tests/pair1.c
index 51ba38a3..2ccbe2e7 100644
--- a/tests/pair1.c
+++ b/tests/pair1.c
@@ -48,7 +48,6 @@ TestMain("PAIRv1 protocol", {
Convey("Monogamous cooked mode works", {
nng_msg *msg;
- int rv;
So(nng_listen(s1, addr, NULL, NNG_FLAG_SYNCH) == 0);
So(nng_dial(c1, addr, NULL, NNG_FLAG_SYNCH) == 0);
@@ -113,7 +112,6 @@ TestMain("PAIRv1 protocol", {
Convey("Polyamorous cooked mode works", {
nng_msg *msg;
- int rv;
int poly;
nng_pipe p1;
nng_pipe p2;
@@ -183,7 +181,6 @@ TestMain("PAIRv1 protocol", {
Convey("Polyamorous raw mode works", {
nng_msg *msg;
- int rv;
int poly;
int raw;
uint32_t hops;