From: Hans de Goede Date: Fri, 15 Oct 2010 07:47:53 +0000 (+0200) Subject: spice-core: fix watching for write events X-Git-Tag: v0.14.0-rc0~456^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d6d306c104abe37610184f12e9342fcbc078395;p=thirdparty%2Fqemu.git spice-core: fix watching for write events Signed-off-by: Gerd Hoffmann --- diff --git a/ui/spice-core.c b/ui/spice-core.c index 6a1cf17e49a..45807ed6e1f 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -95,7 +95,7 @@ static void watch_update_mask(SpiceWatch *watch, int event_mask) on_read = watch_read; } if (watch->event_mask & SPICE_WATCH_EVENT_WRITE) { - on_read = watch_write; + on_write = watch_write; } qemu_set_fd_handler(watch->fd, on_read, on_write, watch); }