{"thread":{"id":"21397","subject":"[PATCH v2] imap-send.c: fix pointer to be const","startedAt":"2009-10-28T07:26:26Z","lastAt":"2009-10-28T07:26:26Z","messageCount":1,"participants":["Vietor Liu"],"isPatch":true,"patchVersion":2,"patchTotal":null},"messages":[{"id":"126109","messageId":"1256714786-3723-1-git-send-email-vietor@vxwo.org","threadId":"21397","inReplyTo":null,"subject":"[PATCH v2] imap-send.c: fix pointer to be const","fromName":"Vietor Liu","fromEmail":"vietor@vxwo.org","sentAt":"2009-10-28T07:26:26Z","receivedAt":"2009-10-28T07:26:26Z","isPatch":true,"sender":{"key":"vietor@vxwo.org","avatar":"https://gravatar.com/avatar/5aec20a4fda090db11446ebfef48ef01e702e5cef0710640a676ccbfce1f4fe3?d=mp&s=160"},"body":"Fixes some compiler warnings:\nimap-send.c: In function ‘ssl_socket_connect’:\nwarning: assignment discards qualifiers from pointer target type\n\n====================================================\nOpenSSL Changes between 0.9.8k and 1.0:\n\n*) Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD\n     pointer and make the SSL_METHOD parameter in SSL_CTX_new,\n     SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'.\n\nSigned-off-by: Vietor Liu <vietor@vxwo.org>\n---\n imap-send.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/imap-send.c b/imap-send.c\nindex 3847fd1..10dd025 100644\n--- a/imap-send.c\n+++ b/imap-send.c\n@@ -273,7 +273,7 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve\n \tfprintf(stderr, \"SSL requested but SSL support not compiled in\\n\");\n \treturn -1;\n #else\n-\tSSL_METHOD *meth;\n+\tconst SSL_METHOD *meth;\n \tSSL_CTX *ctx;\n \tint ret;\n \n-- \n1.6.5.2\n"}]}