[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 40/42] aio / timers: remove dummy_io_handler_flush fr
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 40/42] aio / timers: remove dummy_io_handler_flush from tests/test-aio.c |
Date: |
Thu, 22 Aug 2013 22:11:36 +0200 |
From: Alex Bligh <address@hidden>
Remove dummy_io_handler_flush from tests/test-aio.c as it does
nothing now.
Signed-off-by: Alex Bligh <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
tests/test-aio.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/tests/test-aio.c b/tests/test-aio.c
index 3ad2294..07a1f61 100644
--- a/tests/test-aio.c
+++ b/tests/test-aio.c
@@ -77,11 +77,6 @@ static void dummy_io_handler_read(void *opaque)
{
}
-static int dummy_io_handler_flush(void *opaque)
-{
- return 1;
-}
-
static void bh_delete_cb(void *opaque)
{
BHTestData *data = opaque;
@@ -382,7 +377,7 @@ static void test_timer_schedule(void)
*/
g_assert(!pipe2(pipefd, O_NONBLOCK));
aio_set_fd_handler(ctx, pipefd[0],
- dummy_io_handler_read, NULL, dummy_io_handler_flush);
+ dummy_io_handler_read, NULL, NULL);
aio_poll(ctx, false);
aio_timer_init(ctx, &data.timer, data.clock_type,
@@ -723,7 +718,7 @@ static void test_source_timer_schedule(void)
*/
g_assert(!pipe2(pipefd, O_NONBLOCK));
aio_set_fd_handler(ctx, pipefd[0],
- dummy_io_handler_read, NULL, dummy_io_handler_flush);
+ dummy_io_handler_read, NULL, NULL);
do {} while (g_main_context_iteration(NULL, false));
aio_timer_init(ctx, &data.timer, data.clock_type,
--
1.8.3.1
- [Qemu-devel] [PULL 26/42] aio / timers: Introduce new API timer_new and friends, (continued)
- [Qemu-devel] [PULL 26/42] aio / timers: Introduce new API timer_new and friends, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 28/42] aio / timers: Add documentation and new format calls, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 36/42] aio / timers: Add test harness for AioContext timers, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 34/42] aio / timers: Convert rtc_clock to be a QEMUClockType, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 37/42] aio / timers: Add scripts/switch-timer-api, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 35/42] aio / timers: convert block_job_sleep_ns and co_sleep_ns to new API, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 42/42] win32-aio: drop win32_aio_flush_cb(), Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 41/42] aio-win32: replace incorrect AioHandler->opaque usage with ->e, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 32/42] aio / timers: Rearrange timer.h & make legacy functions call non-legacy, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 39/42] aio / timers: Remove legacy interface, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 40/42] aio / timers: remove dummy_io_handler_flush from tests/test-aio.c,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 33/42] aio / timers: Remove main_loop_timerlist, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 29/42] aio / timers: Remove alarm timers, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 31/42] aio / timers: Add qemu_clock_get_ms and qemu_clock_get_ms, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 30/42] aio / timers: Remove legacy qemu_clock_deadline & qemu_timerlist_deadline, Stefan Hajnoczi, 2013/08/22
- [Qemu-devel] [PULL 38/42] aio / timers: Switch entire codebase to the new timer API, Stefan Hajnoczi, 2013/08/23