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 <hdegoede@redhat.com>
Message-id: 1364292483-16564-2-git-send-email-hdegoede@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Hans de Goede 2013-03-26 11:07:53 +01:00 committed by Anthony Liguori
parent 99835e0084
commit 16665b943b
5 changed files with 8 additions and 8 deletions

View file

@ -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;
}