Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd1oV-0006xY-Vy for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:32:08 -0500 Received: from [199.232.76.173] (port=39997 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd1oU-0006wf-R7 for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:32:06 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd1oP-00079x-6X for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:32:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33448) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nd1oO-00079R-1m for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:32:00 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o14DVxs9015050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Feb 2010 08:31:59 -0500 Received: from localhost.localdomain (vpn1-5-172.ams2.redhat.com [10.36.5.172]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o14DVs36014783 for ; Thu, 4 Feb 2010 08:31:58 -0500 From: Paolo Bonzini Date: Thu, 4 Feb 2010 14:31:52 +0100 Message-Id: <1265290313-31738-5-git-send-email-pbonzini@redhat.com> In-Reply-To: <1265290313-31738-1-git-send-email-pbonzini@redhat.com> References: <1265290313-31738-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 RESEND 4/5] vnc.c: remove dead code List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org to= is handled in qemu-sockets.c inet_listen. Signed-off-by: Paolo Bonzini --- vnc.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/vnc.c b/vnc.c index 92facde..a49cff2 100644 --- a/vnc.c +++ b/vnc.c @@ -2537,7 +2537,6 @@ int vnc_display_open(DisplayState *ds, const char *display) const char *options; int password = 0; int reverse = 0; - int to_port = 0; #ifdef CONFIG_VNC_TLS int tls = 0, x509 = 0; #endif @@ -2563,8 +2562,6 @@ int vnc_display_open(DisplayState *ds, const char *display) password = 1; /* Require password auth */ } else if (strncmp(options, "reverse", 7) == 0) { reverse = 1; - } else if (strncmp(options, "to=", 3) == 0) { - to_port = atoi(options+3) + 5900; #ifdef CONFIG_VNC_SASL } else if (strncmp(options, "sasl", 4) == 0) { sasl = 1; /* Require SASL auth */ -- 1.6.6