[libvirt] [PATCH] Fix use of virEventAddHandleImpl()
Daniel Veillard
veillard at redhat.com
Mon Dec 14 15:11:59 UTC 2009
On Mon, Dec 14, 2009 at 03:29:42PM +0100, Jiri Denemark wrote:
>
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
> src/node_device/node_device_udev.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
> index cf23be1..6b6e244 100644
> --- a/src/node_device/node_device_udev.c
> +++ b/src/node_device/node_device_udev.c
> @@ -37,7 +37,7 @@
> #include "uuid.h"
> #include "util.h"
> #include "buf.h"
> -#include "daemon/event.h"
> +#include "event.h"
>
> #define VIR_FROM_THIS VIR_FROM_NODEDEV
>
> @@ -1526,10 +1526,10 @@ static int udevDeviceMonitorStartup(int privileged ATTRIBUTE_UNUSED)
> * enumeration. The alternative is to register the callback after
> * we enumerate, in which case we will fail to create any devices
> * that appear while the enumeration is taking place. */
> - if (virEventAddHandleImpl(udev_monitor_get_fd(udev_monitor),
> - VIR_EVENT_HANDLE_READABLE,
> - udevEventHandleCallback,
> - NULL, NULL) == -1) {
> + if (virEventAddHandle(udev_monitor_get_fd(udev_monitor),
> + VIR_EVENT_HANDLE_READABLE,
> + udevEventHandleCallback,
> + NULL, NULL) == -1) {
> ret = -1;
> goto out;
> }
Ah, right, thanks for the fix !
Applied and pushed,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list