summaryrefslogtreecommitdiff
path: root/camel/camel-text-index.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-11-15 04:34:38 +0000
committerMatthew Barnes <mbarnes@src.gnome.org>2007-11-15 04:34:38 +0000
commit12262ced63175d4b402998024a55ef1f6ba969ad (patch)
tree08139ccf423554aa96e1e8e00fd99256550adfd6 /camel/camel-text-index.c
parent7f4e14e88885f606d43734663a401dc37cf498aa (diff)
downloadevolution-data-server-12262ced63175d4b402998024a55ef1f6ba969ad.tar.gz
** Merge a bunch of compiler warning fixes and cosmetic cleanups from
2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Merge a bunch of compiler warning fixes and cosmetic cleanups from camel-lite. svn path=/trunk/; revision=8211
Diffstat (limited to 'camel/camel-text-index.c')
-rw-r--r--camel/camel-text-index.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/camel-text-index.c b/camel/camel-text-index.c
index f261613b2..9a9f06eeb 100644
--- a/camel/camel-text-index.c
+++ b/camel/camel-text-index.c
@@ -1468,8 +1468,8 @@ text_index_name_add_buffer(CamelIndexName *idn, const char *buffer, size_t len)
CamelTextIndexNamePrivate *p = CIN_PRIVATE(idn);
const unsigned char *ptr, *ptrend;
guint32 c;
- unsigned char utf8[8];
- size_t utf8len;
+ char utf8[8];
+ int utf8len;
if (buffer == NULL) {
if (p->buffer->len) {
@@ -1479,8 +1479,8 @@ text_index_name_add_buffer(CamelIndexName *idn, const char *buffer, size_t len)
return 0;
}
- ptr = buffer;
- ptrend = buffer+len;
+ ptr = (const unsigned char *) buffer;
+ ptrend = (const unsigned char *) buffer+len;
while ((c = camel_utf8_next(&ptr, ptrend))) {
if (g_unichar_isalnum(c)) {
c = g_unichar_tolower(c);