Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Na8MT-0000kR-85 for qemu-devel@nongnu.org; Wed, 27 Jan 2010 08:55:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na8MO-0000gz-As for qemu-devel@nongnu.org; Wed, 27 Jan 2010 08:55:12 -0500 Received: from [199.232.76.173] (port=46716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na8MN-0000gt-Vf for qemu-devel@nongnu.org; Wed, 27 Jan 2010 08:55:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24819) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na8MN-0004ct-2a for qemu-devel@nongnu.org; Wed, 27 Jan 2010 08:55:07 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0RDt5DJ008727 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Jan 2010 08:55:05 -0500 Received: from localhost.localdomain (vpn1-4-227.ams2.redhat.com [10.36.4.227]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0RDt0CK014994 for ; Wed, 27 Jan 2010 08:55:04 -0500 From: Paolo Bonzini Date: Wed, 27 Jan 2010 14:54:57 +0100 Message-Id: <1264600499-3384-5-git-send-email-pbonzini@redhat.com> In-Reply-To: <1264600499-3384-1-git-send-email-pbonzini@redhat.com> References: <1264600499-3384-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 4/6] 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= has always been handled by qemu-sockets.c's inet_listen, not by vnc.c. Signed-off-by: Paolo Bonzini --- vnc.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/vnc.c b/vnc.c index cc2a26e..69d6624 100644 --- a/vnc.c +++ b/vnc.c @@ -2535,7 +2535,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 @@ -2561,8 +2560,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