From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36134 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDGw3-0004PX-1W for qemu-devel@nongnu.org; Tue, 02 Nov 2010 09:30:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDFU8-0004vV-DX for qemu-devel@nongnu.org; Tue, 02 Nov 2010 07:57:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDFU8-0004v4-3o for qemu-devel@nongnu.org; Tue, 02 Nov 2010 07:57:04 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA2Bv3Lx018970 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Nov 2010 07:57:03 -0400 From: Gerd Hoffmann Date: Tue, 2 Nov 2010 12:56:57 +0100 Message-Id: <1288699019-18711-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1288699019-18711-1-git-send-email-kraxel@redhat.com> References: <1288699019-18711-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] spice-core: fix watching for write events List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hans de Goede , Gerd Hoffmann From: Hans de Goede Signed-off-by: Gerd Hoffmann --- ui/spice-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 6a1cf17..45807ed 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); } -- 1.7.1