From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOjwV-0005zb-Ma for qemu-devel@nongnu.org; Tue, 02 Sep 2014 05:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOjwP-0007Pe-Dm for qemu-devel@nongnu.org; Tue, 02 Sep 2014 04:59:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOjwP-0007OH-5P for qemu-devel@nongnu.org; Tue, 02 Sep 2014 04:59:53 -0400 From: Gerd Hoffmann Date: Tue, 2 Sep 2014 10:59:44 +0200 Message-Id: <1409648384-2096-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1409648384-2096-1-git-send-email-kraxel@redhat.com> References: <1409648384-2096-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 2/2] spice: use console index as display id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori ... instead of maintaining our own numbering. Signed-off-by: Gerd Hoffmann --- ui/spice-core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 1a2fb4b..17a2ed3 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -853,7 +853,6 @@ int qemu_spice_add_interface(SpiceBaseInstance *sin) } static GSList *spice_consoles; -static int display_id; bool qemu_spice_have_display_interface(QemuConsole *con) { @@ -868,7 +867,7 @@ int qemu_spice_add_display_interface(QXLInstance *qxlin, QemuConsole *con) if (g_slist_find(spice_consoles, con)) { return -1; } - qxlin->id = display_id++; + qxlin->id = qemu_console_get_index(con); spice_consoles = g_slist_append(spice_consoles, con); return qemu_spice_add_interface(&qxlin->base); } -- 1.8.3.1