summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-02-25 18:24:39 -0800
committerGarrett D'Amore <garrett@damore.org>2024-02-25 18:39:56 -0800
commit80f2314bb417fb84f1e283fdf3af8bc1381f4923 (patch)
treed030c0aa50f480c9b6b9159b1f12a518c876fa52
parent53a9740d1dcbad6be4b4c1a10a5f3fcbb97a5be9 (diff)
downloadnng-80f2314bb417fb84f1e283fdf3af8bc1381f4923.tar.gz
nng-80f2314bb417fb84f1e283fdf3af8bc1381f4923.tar.bz2
nng-80f2314bb417fb84f1e283fdf3af8bc1381f4923.zip
windows: marry - warning about HANDLE vs int
-rw-r--r--src/testing/marry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/marry.c b/src/testing/marry.c
index 2485a666..d39cf583 100644
--- a/src/testing/marry.c
+++ b/src/testing/marry.c
@@ -287,8 +287,8 @@ nuts_marry_ex(
((rv = nng_listener_set_int(
l2, NNG_OPT_SOCKET_FD, fd[1])) != 0)) {
#ifdef _WIN32
- CloseHandle((HANDLE) fd[0]);
- CloseHandle((HANDLE) fd[1]);
+ _close(fd[0]);
+ _close(fd[1]);
#else
close(fd[0]);
close(fd[1]);