[dovecot-cvs] dovecot/src/lib-mail message-header-search.c, 1.14, 1.15

cras at dovecot.org cras at dovecot.org
Sun Sep 11 16:23:03 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv16438/lib-mail

Modified Files:
	message-header-search.c 
Log Message:
Compiler warning fixes



Index: message-header-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-header-search.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- message-header-search.c	22 Jul 2005 11:47:07 -0000	1.14
+++ message-header-search.c	11 Sep 2005 13:23:01 -0000	1.15
@@ -87,7 +87,7 @@
 				const char *charset,
 				struct header_search_context *ctx)
 {
-	const char *utf8_data;
+	const void *utf8_data;
 	size_t utf8_size;
 
 	if (ctx->unknown_charset) {
@@ -100,8 +100,8 @@
 		charset = ctx->key_charset;
 	}
 
-	utf8_data = charset_to_ucase_utf8_string(charset, NULL,
-						 data, size, &utf8_size);
+	utf8_data = charset_to_ucase_utf8_string(charset, NULL, data, size,
+						 &utf8_size);
 
 	if (utf8_data == NULL) {
 		/* unknown character set, or invalid data. just compare it
@@ -111,7 +111,7 @@
 	}
 
 	ctx->submatch = TRUE;
-	search_loop((const unsigned char *) utf8_data, utf8_size, ctx);
+	search_loop(utf8_data, utf8_size, ctx);
 	ctx->submatch = FALSE;
 }
 



More information about the dovecot-cvs mailing list