From 16665b943b23e953220df257e7e04e669aa384d5 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 26 Mar 2013 11:07:53 +0100 Subject: qemu-char: Rename opened to be_open Rename the opened variable to be_open to reflect that it contains the opened state of the backend. Signed-off-by: Hans de Goede Message-id: 1364292483-16564-2-git-send-email-hdegoede@redhat.com Signed-off-by: Anthony Liguori --- spice-qemu-char.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spice-qemu-char.c') diff --git a/spice-qemu-char.c b/spice-qemu-char.c index 8a9236d0a8..c39095b438 100644 --- a/spice-qemu-char.c +++ b/spice-qemu-char.c @@ -100,8 +100,8 @@ static void vmc_state(SpiceCharDeviceInstance *sin, int connected) } #endif - if ((scd->chr->opened && connected) || - (!scd->chr->opened && !connected)) { + if ((scd->chr->be_open && connected) || + (!scd->chr->be_open && !connected)) { return; } -- cgit v1.2.1