From: Vietor Liu <vietor@vxwo.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] imap-send.c: fix pointer to be const
Date: Wed, 28 Oct 2009 15:05:26 +0800 [thread overview]
Message-ID: <1256713526.3333.0.camel@localhost.localdomain> (raw)
In-Reply-To: <7vk4ygxce6.fsf@alter.siamese.dyndns.org>
On Tue, 2009-10-27 at 23:26 -0700, Junio C Hamano wrote:
> Vietor Liu <vietor@vxwo.org> writes:
>
> > Fixes some compiler warnings:
> > imap-send.c: In function ‘ssl_socket_connect’:
> > warning: assignment discards qualifiers from pointer target type
> >
> > Signed-off-by: Vietor Liu <vietor@vxwo.org>
>
> I do not quite understand. This variable gets assigned the return values
> from TLSv1_method() or SSLv23_method(), but the copy of ssl.h I have
> declares them as:
>
> SSL_METHOD *SSLv23_method(void); /* SSLv3 but can rollback to v2 */
> SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */
1. openssl-devel-1.0.0-0.10
const SSL_METHOD *SSLv23_method(void); /* SSLv3 but can rollback to v2
*/
const SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */
2. http://www.openssl.org/docs/ssl/ssl.html
const SSL_METHOD *SSLv2_method(void);
Constructor for the SSLv2 SSL_METHOD structure for combined
client and server.
const SSL_METHOD *TLSv1_method(void);
Constructor for the TLSv1 SSL_METHOD structure for combined
client and server.
3. it maybe fixes warnings for other version.
next prev parent reply other threads:[~2009-10-28 7:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-28 5:09 [PATCH] imap-send.c: fix pointer to be const Vietor Liu
2009-10-28 6:26 ` Junio C Hamano
2009-10-28 7:05 ` Vietor Liu [this message]
2009-10-28 13:33 ` Michael J Gruber
2009-10-28 17:56 ` Junio C Hamano
2009-10-29 0:13 ` Vietor Liu
-- strict thread matches above, loose matches on Subject: below --
2009-10-28 7:24 Vietor Liu
2009-10-28 7:25 ` Junio C Hamano
2009-10-28 7:48 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1256713526.3333.0.camel@localhost.localdomain \
--to=vietor@vxwo.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).