iohandler: Change return type of qemu_set_fd_handler to "void"

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1433400324-7358-14-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
Fam Zheng 2015-06-04 14:45:24 +08:00 committed by Stefan Hajnoczi
parent 1e354528bd
commit f4d248bdc3
3 changed files with 12 additions and 13 deletions

View File

@ -198,10 +198,10 @@ typedef int IOCanReadHandler(void *opaque);
* *
* @opaque: A pointer-sized value that is passed to @fd_read and @fd_write. * @opaque: A pointer-sized value that is passed to @fd_read and @fd_write.
*/ */
int qemu_set_fd_handler(int fd, void qemu_set_fd_handler(int fd,
IOHandler *fd_read, IOHandler *fd_read,
IOHandler *fd_write, IOHandler *fd_write,
void *opaque); void *opaque);
#ifdef CONFIG_POSIX #ifdef CONFIG_POSIX
/** /**

View File

@ -45,10 +45,10 @@ typedef struct IOHandlerRecord {
static QLIST_HEAD(, IOHandlerRecord) io_handlers = static QLIST_HEAD(, IOHandlerRecord) io_handlers =
QLIST_HEAD_INITIALIZER(io_handlers); QLIST_HEAD_INITIALIZER(io_handlers);
int qemu_set_fd_handler(int fd, void qemu_set_fd_handler(int fd,
IOHandler *fd_read, IOHandler *fd_read,
IOHandler *fd_write, IOHandler *fd_write,
void *opaque) void *opaque)
{ {
IOHandlerRecord *ioh; IOHandlerRecord *ioh;
@ -77,7 +77,6 @@ int qemu_set_fd_handler(int fd,
ioh->deleted = 0; ioh->deleted = 0;
qemu_notify_event(); qemu_notify_event();
} }
return 0;
} }
void qemu_iohandler_fill(GArray *pollfds) void qemu_iohandler_fill(GArray *pollfds)

View File

@ -1,10 +1,10 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
int qemu_set_fd_handler(int fd, void qemu_set_fd_handler(int fd,
IOHandler *fd_read, IOHandler *fd_read,
IOHandler *fd_write, IOHandler *fd_write,
void *opaque) void *opaque)
{ {
abort(); abort();
} }