event-notifier: Always return 0 for posix implementation
qemu_set_fd_handler cannot fail, let's always return 0. Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1433400324-7358-13-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
6b5166f8a8
commit
1e354528bd
@ -85,7 +85,8 @@ int event_notifier_get_fd(EventNotifier *e)
|
|||||||
int event_notifier_set_handler(EventNotifier *e,
|
int event_notifier_set_handler(EventNotifier *e,
|
||||||
EventNotifierHandler *handler)
|
EventNotifierHandler *handler)
|
||||||
{
|
{
|
||||||
return qemu_set_fd_handler(e->rfd, (IOHandler *)handler, NULL, e);
|
qemu_set_fd_handler(e->rfd, (IOHandler *)handler, NULL, e);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int event_notifier_set(EventNotifier *e)
|
int event_notifier_set(EventNotifier *e)
|
||||||
|
Loading…
Reference in New Issue
Block a user