mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
aio: change qemu_aio_set_fd_handler to return void
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1c53786fbd
commit
b078dc3cfe
2 changed files with 10 additions and 12 deletions
4
aio.c
4
aio.c
|
@ -53,7 +53,7 @@ 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,
|
||||||
|
@ -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,7 +60,7 @@ 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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue