From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kv8Zy-0003va-MI for qemu-devel@nongnu.org; Wed, 29 Oct 2008 06:47:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kv8Zv-0003uC-Cr for qemu-devel@nongnu.org; Wed, 29 Oct 2008 06:47:09 -0400 Received: from [199.232.76.173] (port=56105 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kv8Zu-0003tv-GA for qemu-devel@nongnu.org; Wed, 29 Oct 2008 06:47:06 -0400 Received: from mx2.redhat.com ([66.187.237.31]:51404) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kv8Zs-0002zL-Is for qemu-devel@nongnu.org; Wed, 29 Oct 2008 06:47:06 -0400 Message-ID: <49083F22.8070006@redhat.com> Date: Wed, 29 Oct 2008 11:46:58 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 3/4] sockets: switch vnc to new code, support vnc port auto-allocation. References: <1225198518-16529-1-git-send-email-kraxel@redhat.com> <1225198518-16529-4-git-send-email-kraxel@redhat.com> <49076EC4.70909@redhat.com> In-Reply-To: <49076EC4.70909@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl Gerd Hoffmann wrote: > Blue Swirl wrote: >> On 10/28/08, Gerd Hoffmann wrote: >>> This patch switches the vnc code ofer to the new socket helper >>> functions. >>> - if (strcmp(display, "none") == 0) >>> - return 0; >>> - >>> if (!(vs->display = strdup(display))) >>> return -1; >>> + if (strcmp(display, "none") == 0) >>> + return 0; >> Why this change? > > To keep vs->display and thus the "info vnc" output up-to-date. Without > this you'll see stale information after "change vnc none". Scratch that. vs->display is released and set to NULL in vnc_display_close(). So this chunk isn't needed at all, I'll drop it. cheers, Gerd