diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-02-21 16:48:01 +0400 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-13 15:39:31 +0400 |
| commit | 25657fc6c1b693096e2ceadaa53cd10c1e81c8d9 (patch) | |
| tree | 02de623f13a1d265022ddbdbf7433eb33f929d23 /tests/qtest/microbit-test.c | |
| parent | b7e5374637daffa49657be2c559a0566836a172f (diff) | |
| download | focaccia-qemu-25657fc6c1b693096e2ceadaa53cd10c1e81c8d9.tar.gz focaccia-qemu-25657fc6c1b693096e2ceadaa53cd10c1e81c8d9.zip | |
win32: replace closesocket() with close() wrapper
Use a close() wrapper instead, so that we don't need to worry about closesocket() vs close() anymore, let's hope. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Message-Id: <20230221124802.4103554-17-marcandre.lureau@redhat.com>
Diffstat (limited to 'tests/qtest/microbit-test.c')
| -rw-r--r-- | tests/qtest/microbit-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/microbit-test.c b/tests/qtest/microbit-test.c index 4bc267020b..6022a92b6a 100644 --- a/tests/qtest/microbit-test.c +++ b/tests/qtest/microbit-test.c @@ -107,7 +107,7 @@ static void test_nrf51_uart(void) g_assert_true(recv(sock_fd, s, 10, 0) == 5); g_assert_true(memcmp(s, "world", 5) == 0); - closesocket(sock_fd); + close(sock_fd); qtest_quit(qts); } |