From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZj4f-0005kl-VX for qemu-devel@nongnu.org; Thu, 23 Jun 2011 08:31:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZj4e-0007qP-Il for qemu-devel@nongnu.org; Thu, 23 Jun 2011 08:31:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZj4e-0007qC-5Y for qemu-devel@nongnu.org; Thu, 23 Jun 2011 08:31:56 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5NCVtS9002708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 23 Jun 2011 08:31:55 -0400 From: "Daniel P. Berrange" Date: Thu, 23 Jun 2011 13:31:43 +0100 Message-Id: <1308832303-24205-4-git-send-email-berrange@redhat.com> In-Reply-To: <1308832303-24205-1-git-send-email-berrange@redhat.com> References: <1308832303-24205-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH 3/3] Remove unused USES_X509_AUTH macro from VNC sasl code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The USES_X509_AUTH macro is defined in several VNC files, but not used in all of them. Remove the unused definition. * ui/vnc-auth-sasl.c: Remove USES_X509_AUTH macro --- ui/vnc-auth-sasl.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/ui/vnc-auth-sasl.c b/ui/vnc-auth-sasl.c index 8aac5ec..15af49b 100644 --- a/ui/vnc-auth-sasl.c +++ b/ui/vnc-auth-sasl.c @@ -491,13 +491,6 @@ static int protocol_client_auth_sasl_mechname_len(VncState *vs, uint8_t *data, s return 0; } -#define USES_X509_AUTH(vs) \ - ((vs)->subauth == VNC_AUTH_VENCRYPT_X509NONE || \ - (vs)->subauth == VNC_AUTH_VENCRYPT_X509VNC || \ - (vs)->subauth == VNC_AUTH_VENCRYPT_X509PLAIN || \ - (vs)->subauth == VNC_AUTH_VENCRYPT_X509SASL) - - void start_auth_sasl(VncState *vs) { const char *mechlist = NULL; -- 1.7.4.4