提交 b078dc3c 编写于 作者: P Paolo Bonzini

aio: change qemu_aio_set_fd_handler to return void

Reviewed-by: NAnthony Liguori <aliguori@us.ibm.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 1c53786f
...@@ -53,11 +53,11 @@ static AioHandler *find_aio_handler(int fd) ...@@ -53,11 +53,11 @@ static AioHandler *find_aio_handler(int fd)
return NULL; return NULL;
} }
int qemu_aio_set_fd_handler(int fd, void qemu_aio_set_fd_handler(int fd,
IOHandler *io_read, IOHandler *io_read,
IOHandler *io_write, IOHandler *io_write,
AioFlushHandler *io_flush, AioFlushHandler *io_flush,
void *opaque) void *opaque)
{ {
AioHandler *node; AioHandler *node;
...@@ -93,8 +93,6 @@ int qemu_aio_set_fd_handler(int fd, ...@@ -93,8 +93,6 @@ int qemu_aio_set_fd_handler(int fd,
} }
qemu_set_fd_handler2(fd, NULL, io_read, io_write, opaque); qemu_set_fd_handler2(fd, NULL, io_read, io_write, opaque);
return 0;
} }
void qemu_aio_flush(void) void qemu_aio_flush(void)
......
...@@ -60,10 +60,10 @@ bool qemu_aio_wait(void); ...@@ -60,10 +60,10 @@ bool qemu_aio_wait(void);
* Code that invokes AIO completion functions should rely on this function * Code that invokes AIO completion functions should rely on this function
* instead of qemu_set_fd_handler[2]. * instead of qemu_set_fd_handler[2].
*/ */
int qemu_aio_set_fd_handler(int fd, void qemu_aio_set_fd_handler(int fd,
IOHandler *io_read, IOHandler *io_read,
IOHandler *io_write, IOHandler *io_write,
AioFlushHandler *io_flush, AioFlushHandler *io_flush,
void *opaque); void *opaque);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册