From patchwork Wed Jan 27 13:54:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 43806 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 787E6B7EB5 for ; Thu, 28 Jan 2010 01:04:10 +1100 (EST) Received: from localhost ([127.0.0.1]:38784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na8V5-0004Y2-FB for incoming@patchwork.ozlabs.org; Wed, 27 Jan 2010 09:04:07 -0500 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 To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 4/6] vnc.c: remove dead code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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 */