mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
tests: use closesocket()
Because they are actually sockets... Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20230221124802.4103554-3-marcandre.lureau@redhat.com>
This commit is contained in:
parent
8278e30c45
commit
a59100a9b0
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue