aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/pair0/pair0_test.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-31 13:26:44 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-31 13:26:44 -0800
commitb0874b1dad787c32093a3ff81311e2d638dc6538 (patch)
treecde1005cef02954893fe2d9786d248930f857200 /src/sp/protocol/pair0/pair0_test.c
parent2a4a14646f95b21cbc8f9b5bef8d76cd0fe04fec (diff)
downloadnng-b0874b1dad787c32093a3ff81311e2d638dc6538.tar.gz
nng-b0874b1dad787c32093a3ff81311e2d638dc6538.tar.bz2
nng-b0874b1dad787c32093a3ff81311e2d638dc6538.zip
socket: rename nng_close to nng_socket_close
Diffstat (limited to 'src/sp/protocol/pair0/pair0_test.c')
-rw-r--r--src/sp/protocol/pair0/pair0_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sp/protocol/pair0/pair0_test.c b/src/sp/protocol/pair0/pair0_test.c
index d883f1e3..dc3264be 100644
--- a/src/sp/protocol/pair0/pair0_test.c
+++ b/src/sp/protocol/pair0/pair0_test.c
@@ -215,7 +215,7 @@ test_pair0_send_stopped_aio(void)
NUTS_FAIL(nng_aio_result(aio), NNG_ESTOPPED);
nng_msg_free(msg);
nng_aio_free(aio);
- NUTS_PASS(nng_close(s1));
+ NUTS_CLOSE(s1);
}
void
@@ -235,7 +235,7 @@ test_pair0_send_canceled_aio(void)
NUTS_FAIL(nng_aio_result(aio), NNG_ECANCELED);
nng_msg_free(msg);
nng_aio_free(aio);
- NUTS_PASS(nng_close(s1));
+ NUTS_CLOSE(s1);
}
void
@@ -251,7 +251,7 @@ test_pair0_recv_stopped_aio(void)
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ESTOPPED);
nng_aio_free(aio);
- NUTS_PASS(nng_close(s1));
+ NUTS_CLOSE(s1);
}
void
@@ -267,7 +267,7 @@ test_pair0_recv_canceled_aio(void)
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ECANCELED);
nng_aio_free(aio);
- NUTS_PASS(nng_close(s1));
+ NUTS_CLOSE(s1);
}
void
test_pair0_raw(void)
@@ -278,12 +278,12 @@ test_pair0_raw(void)
NUTS_PASS(nng_pair0_open(&s1));
NUTS_PASS(nng_socket_raw(s1, &raw));
NUTS_TRUE(raw == false);
- NUTS_PASS(nng_close(s1));
+ NUTS_CLOSE(s1);
NUTS_PASS(nng_pair0_open_raw(&s1));
NUTS_PASS(nng_socket_raw(s1, &raw));
NUTS_TRUE(raw == true);
- NUTS_PASS(nng_close(s1));
+ NUTS_CLOSE(s1);
}
void