mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06: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:
|
cleanup:
|
||||||
if (afd != -1) {
|
if (afd != -1) {
|
||||||
close(afd);
|
closesocket(afd);
|
||||||
}
|
}
|
||||||
if (cfd != -1) {
|
if (cfd != -1) {
|
||||||
close(cfd);
|
closesocket(cfd);
|
||||||
}
|
}
|
||||||
if (lfd != -1) {
|
if (lfd != -1) {
|
||||||
close(lfd);
|
closesocket(lfd);
|
||||||
}
|
}
|
||||||
if (res) {
|
if (res) {
|
||||||
freeaddrinfo(res);
|
freeaddrinfo(res);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue