From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vietor Liu Subject: [PATCH] imap-send.c: fix pointer to be const Date: Wed, 28 Oct 2009 15:24:37 +0800 Message-ID: <1256714677-3659-1-git-send-email-vietor@vxwo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Wed Oct 28 08:21:49 2009 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1N32qr-0000e6-7U for gcvg-git-2@lo.gmane.org; Wed, 28 Oct 2009 08:21:49 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932413AbZJ1HVk convert rfc822-to-quoted-printable (ORCPT ); Wed, 28 Oct 2009 03:21:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932292AbZJ1HVj (ORCPT ); Wed, 28 Oct 2009 03:21:39 -0400 Received: from mail-gx0-f228.google.com ([209.85.217.228]:39180 "EHLO mail-gx0-f228.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932092AbZJ1HVj (ORCPT ); Wed, 28 Oct 2009 03:21:39 -0400 X-Greylist: delayed 1023 seconds by postgrey-1.27 at vger.kernel.org; Wed, 28 Oct 2009 03:21:39 EDT Received: by gxk28 with SMTP id 28so457087gxk.9 for ; Wed, 28 Oct 2009 00:21:43 -0700 (PDT) Received: by 10.150.172.4 with SMTP id u4mr6152207ybe.252.1256714503548; Wed, 28 Oct 2009 00:21:43 -0700 (PDT) Received: from localhost.localdomain ([123.113.74.202]) by mx.google.com with ESMTPS id 16sm358306gxk.3.2009.10.28.00.21.40 (version=SSLv3 cipher=RC4-MD5); Wed, 28 Oct 2009 00:21:43 -0700 (PDT) X-Mailer: git-send-email 1.6.5.2 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: =46ixes some compiler warnings: imap-send.c: In function =E2=80=98ssl_socket_connect=E2=80=99: warning: assignment discards qualifiers from pointer target type =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D OpenSSL Changes between 0.9.8k and 1.0: *) Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD pointer and make the SSL_METHOD parameter in SSL_CTX_new, SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'. Signed-off-by: Vietor Liu --- imap-send.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/imap-send.c b/imap-send.c index 3847fd1..10dd025 100644 --- a/imap-send.c +++ b/imap-send.c @@ -273,7 +273,7 @@ static int ssl_socket_connect(struct imap_socket *s= ock, int use_tls_only, int ve fprintf(stderr, "SSL requested but SSL support not compiled in\n"); return -1; #else - SSL_METHOD *meth; + const SSL_METHOD *meth; SSL_CTX *ctx; int ret; =20 --=20 1.6.5.2