diff options
author | Marc-André Lureau | 2022-02-18 22:34:50 +0100 |
---|---|---|
committer | Marc-André Lureau | 2022-03-22 11:40:51 +0100 |
commit | e7b794282264868d84b3d9a5da222b08a783d8fb (patch) | |
tree | 16c03c50cd6f8bf875b893c80d151ec171baeb2e /tests/qtest/npcm7xx_emc-test.c | |
parent | m68k/nios2-semi: fix gettimeofday() result check (diff) | |
download | qemu-e7b794282264868d84b3d9a5da222b08a783d8fb.tar.gz qemu-e7b794282264868d84b3d9a5da222b08a783d8fb.tar.xz qemu-e7b794282264868d84b3d9a5da222b08a783d8fb.zip |
Drop qemu_foo() socket API wrapper
The socket API wrappers were initially introduced in commit
00aa0040 ("Wrap recv to avoid warnings"), but made redundant with
commit a2d96af4 ("osdep: add wrappers for socket functions") which fixes
the win32 declarations and thus removed the earlier warnings.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests/qtest/npcm7xx_emc-test.c')
-rw-r--r-- | tests/qtest/npcm7xx_emc-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/npcm7xx_emc-test.c b/tests/qtest/npcm7xx_emc-test.c index 9eec71d87c..7c435ac915 100644 --- a/tests/qtest/npcm7xx_emc-test.c +++ b/tests/qtest/npcm7xx_emc-test.c @@ -521,12 +521,12 @@ static void emc_send_verify1(QTestState *qts, const EMCModule *mod, int fd, /* Check data sent to the backend. */ recv_len = ~0; - ret = qemu_recv(fd, &recv_len, sizeof(recv_len), MSG_DONTWAIT); + ret = recv(fd, &recv_len, sizeof(recv_len), MSG_DONTWAIT); g_assert_cmpint(ret, == , sizeof(recv_len)); g_assert(wait_socket_readable(fd)); memset(buffer, 0xff, sizeof(buffer)); - ret = qemu_recv(fd, buffer, test_size, MSG_DONTWAIT); + ret = recv(fd, buffer, test_size, MSG_DONTWAIT); g_assert_cmpmem(buffer, ret, test_data, test_size); } |