git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] imap-send.c: fix pointer to be const

From
Vietor Liu <vietor@vxwo.org>
Date
Oct 28, 2009, 05:09 UTC
Message-ID
<1256706591-2763-1-git-send-email-vietor@vxwo.org>

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>
---
 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 *sock, 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;
 
-- 
1.6.5.2
Next: Junio C Hamano
Message 1 of 6 in “imap-send.c: fix pointer to be const”
  1. imap-send.c: fix pointer to be constVietor Liu, Oct 28, 2009
  2. Junio C HamanoOct 28, 2009
  3. Vietor LiuOct 28, 2009
  4. Michael J GruberOct 28, 2009
  5. Junio C HamanoOct 28, 2009
  6. Vietor LiuOct 29, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.