From patchwork Thu Feb 4 13:31:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 44493 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 13B39B7D53 for ; Fri, 5 Feb 2010 01:20:42 +1100 (EST) Received: from localhost ([127.0.0.1]:40502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd22b-0005Tv-9y for incoming@patchwork.ozlabs.org; Thu, 04 Feb 2010 08:46:41 -0500 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 To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH v2 RESEND 4/5] 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= 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 */