aboutsummaryrefslogtreecommitdiff
path: root/src/core
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/core
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/core')
-rw-r--r--src/core/aio_test.c14
-rw-r--r--src/core/buf_size_test.c2
-rw-r--r--src/core/socket.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/src/core/aio_test.c b/src/core/aio_test.c
index f9663903..d8d70e12 100644
--- a/src/core/aio_test.c
+++ b/src/core/aio_test.c
@@ -155,7 +155,7 @@ test_consumer_cancel(void)
NUTS_TRUE(nng_aio_result(a) == NNG_ECANCELED);
nng_aio_free(a);
- NUTS_TRUE(nng_close(s1) == 0);
+ NUTS_CLOSE(s1);
}
void
@@ -207,8 +207,8 @@ test_traffic(void)
nng_aio_free(rx_aio);
nng_aio_free(tx_aio);
- NUTS_PASS(nng_close(s1));
- NUTS_PASS(nng_close(s2));
+ NUTS_CLOSE(s1);
+ NUTS_CLOSE(s2);
}
void
@@ -226,7 +226,7 @@ test_explicit_timeout(void)
NUTS_TRUE(done == 1);
NUTS_FAIL(nng_aio_result(a), NNG_ETIMEDOUT);
nng_aio_free(a);
- NUTS_PASS(nng_close(s));
+ NUTS_CLOSE(s);
}
void
@@ -247,7 +247,7 @@ test_explicit_expiration(void)
NUTS_TRUE(done == 1);
NUTS_FAIL(nng_aio_result(a), NNG_ETIMEDOUT);
nng_aio_free(a);
- NUTS_PASS(nng_close(s));
+ NUTS_CLOSE(s);
}
void
@@ -265,7 +265,7 @@ test_inherited_timeout(void)
NUTS_TRUE(done == 1);
NUTS_FAIL(nng_aio_result(a), NNG_ETIMEDOUT);
nng_aio_free(a);
- NUTS_PASS(nng_close(s));
+ NUTS_CLOSE(s);
}
void
@@ -283,7 +283,7 @@ test_zero_timeout(void)
NUTS_TRUE(done == 1);
NUTS_FAIL(nng_aio_result(a), NNG_ETIMEDOUT);
nng_aio_free(a);
- NUTS_PASS(nng_close(s));
+ NUTS_CLOSE(s);
}
static void
diff --git a/src/core/buf_size_test.c b/src/core/buf_size_test.c
index b33a713b..1290a5c2 100644
--- a/src/core/buf_size_test.c
+++ b/src/core/buf_size_test.c
@@ -43,7 +43,7 @@ test_buffer_options(void)
// Buffer sizes are limited to sane levels
NUTS_FAIL(nng_socket_set_int(s1, opt, 0x100000), NNG_EINVAL);
}
- NUTS_PASS(nng_close(s1));
+ NUTS_CLOSE(s1);
}
NUTS_TESTS = {
diff --git a/src/core/socket.c b/src/core/socket.c
index 89352c03..0dfdb183 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -698,7 +698,7 @@ nni_sock_shutdown(nni_sock *sock)
// At this point, there are no threads blocked inside of us
// that are referencing socket state. User code should call
- // nng_close to release the last resources.
+ // nng_socket_close to release the last resources.
return (0);
}