[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] tests: use closesocket()
From: |
marcandre . lureau |
Subject: |
[PATCH 1/4] tests: use closesocket() |
Date: |
Mon, 13 Feb 2023 00:49:39 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Because they are actually sockets...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
tests/unit/socket-helpers.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/unit/socket-helpers.c b/tests/unit/socket-helpers.c
index eecadf3a3c..914b3aa0cf 100644
--- a/tests/unit/socket-helpers.c
+++ b/tests/unit/socket-helpers.c
@@ -117,13 +117,13 @@ static int socket_can_bind_connect(const char *hostname,
int family)
cleanup:
if (afd != -1) {
- close(afd);
+ closesocket(afd);
}
if (cfd != -1) {
- close(cfd);
+ closesocket(cfd);
}
if (lfd != -1) {
- close(lfd);
+ closesocket(lfd);
}
if (res) {
freeaddrinfo(res);
--
2.39.1
- [PATCH 0/4] win32: do not mix SOCKET and fd space, marcandre . lureau, 2023/02/12
- [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, marcandre . lureau, 2023/02/12
- Re: [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, Marc-André Lureau, 2023/02/20
- Re: [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, Markus Armbruster, 2023/02/20
- Re: [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, Marc-André Lureau, 2023/02/20
- Re: [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, Daniel P . Berrangé, 2023/02/20
- Re: [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, Paolo Bonzini, 2023/02/21
- Re: [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, Marc-André Lureau, 2023/02/21
- Re: [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, Marc-André Lureau, 2023/02/21
- Re: [PATCH 3/4] win32: stop mixing SOCKET and file descriptor space, Paolo Bonzini, 2023/02/21
[PATCH 1/4] tests: use closesocket(),
marcandre . lureau <=
[PATCH 2/4] io: use closesocket(), marcandre . lureau, 2023/02/12
[PATCH 4/4] win32: replace closesocket() with close() wrapper, marcandre . lureau, 2023/02/12