changeset 505:78ae6262d6ca HEAD

More (char *) -> (const char *) fixes
author Timo Sirainen <tss@iki.fi>
date Fri, 25 Oct 2002 04:57:20 +0300
parents 54788b83654f
children 0329dd6cd40e
files src/lib-mail/message-parser.c src/lib-storage/index/index-search.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-mail/message-parser.c	Fri Oct 25 04:06:19 2002 +0300
+++ b/src/lib-mail/message-parser.c	Fri Oct 25 04:57:20 2002 +0300
@@ -468,8 +468,8 @@
 			    msg[line_start+1] == '-') {
 				/* possible boundary */
 				boundary = boundary_find(boundaries,
-						(char *) msg + line_start + 2,
-						i - line_start - 2);
+					(const char *) msg + line_start + 2,
+					i - line_start - 2);
 				if (boundary != NULL)
 					break;
 			}
@@ -493,8 +493,8 @@
 			   70 chars without "--" or less. We allow
 			   a bit larger.. */
 			boundary = boundary_find(boundaries,
-						 (char *) msg + line_start + 2,
-						 i - line_start - 2);
+					(const char *) msg + line_start + 2,
+					i - line_start - 2);
 			if (boundary != NULL)
 				break;
 
--- a/src/lib-storage/index/index-search.c	Fri Oct 25 04:06:19 2002 +0300
+++ b/src/lib-storage/index/index-search.c	Fri Oct 25 04:57:20 2002 +0300
@@ -565,7 +565,7 @@
 	   for block size - (strlen(largest_searchword)-1) and continue. */
 	while (i_buffer_read_data(inbuf, &data, &size,
 				  max_searchword_len-1) > 0) {
-		ctx.msg = (char *) data;
+		ctx.msg = (const char *) data;
 		ctx.size = size;
 		mail_search_args_foreach(args, search_func, &ctx);
 		i_buffer_skip(inbuf, size - (max_searchword_len-1));