diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-31 13:26:44 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-31 13:26:44 -0800 |
| commit | b0874b1dad787c32093a3ff81311e2d638dc6538 (patch) | |
| tree | cde1005cef02954893fe2d9786d248930f857200 /src/testing/nuts.h | |
| parent | 2a4a14646f95b21cbc8f9b5bef8d76cd0fe04fec (diff) | |
| download | nng-b0874b1dad787c32093a3ff81311e2d638dc6538.tar.gz nng-b0874b1dad787c32093a3ff81311e2d638dc6538.tar.bz2 nng-b0874b1dad787c32093a3ff81311e2d638dc6538.zip | |
socket: rename nng_close to nng_socket_close
Diffstat (limited to 'src/testing/nuts.h')
| -rw-r--r-- | src/testing/nuts.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/nuts.h b/src/testing/nuts.h index 421e0a53..b0c30245 100644 --- a/src/testing/nuts.h +++ b/src/testing/nuts.h @@ -23,7 +23,7 @@ extern void nuts_logger( nng_log_level, nng_log_facility, const char *, const char *); // Call nng_fini during test finalization -- this avoids leak warnings. -// We add a 20 millisecond delay as a hack to allow for other subsytems to +/// We add a 20 millisecond delay as a hack to allow for other subsytems to // drain first. (Notably the HTTP framework can fail if we shut down too // quickly. These bugs should be fixed and then the sleep can be removed.) #ifndef TEST_FINI @@ -285,7 +285,7 @@ extern const char *nuts_ecdsa_client_crt; #define NUTS_OPEN(sock) NUTS_PASS(nng_pair1_open(&(sock))) -#define NUTS_CLOSE(sock) NUTS_PASS(nng_close(sock)) +#define NUTS_CLOSE(sock) NUTS_PASS(nng_socket_close(sock)) #define NUTS_SLEEP(ms) nuts_sleep(ms) |
