[evolution-patches] Compilation warning fixes for camel-mime-filter-canon.c



Trying to get work upstream,

Have fun

-- 
Philip Van Hoof, software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
work: vanhoof at x-tend dot be
blog: http://pvanhoof.be/blog
--- camel-mime-filter-canon.c	2006-10-17 10:22:46.000000000 +0200
+++ /home/pvanhoof/repos/gnome/cvs/evolution-data-server/camel/camel-mime-filter-canon.c	2005-08-31 06:21:56.000000000 +0200
@@ -80,8 +80,8 @@
 	flags = ((CamelMimeFilterCanon *)f)->flags;
 
 	/* first, work out how much space we need */
-	inptr = (unsigned char *)in;
-	inend = (const unsigned char *) (in+len);
+	inptr = in;
+	inend = in+len;
 	while (inptr < inend)
 		if (*inptr++ == '\n')
 			lf++;
@@ -93,7 +93,7 @@
 	camel_mime_filter_set_size(f, len+lf*3+4, FALSE);
 
 	o = f->outbuf;
-	inptr = (unsigned char *)in;
+	inptr = in;
 	start = inptr;
 	starto = o;
 	while (inptr < inend) {
@@ -102,7 +102,7 @@
 		if (flags & CAMEL_MIME_FILTER_CANON_FROM && c == 'F') {
 			inptr++;
 			if (inptr < inend-4) {
-				if (strncmp((char*)inptr, "rom ", 4) == 0) {
+				if (strncmp(inptr, "rom ", 4) == 0) {
 					strcpy(o, "=46rom ");
 					inptr+=4;
 					o+= 7;
@@ -153,7 +153,7 @@
 	if (last) {
 		*outlen = o - f->outbuf;
 	} else {
-		camel_mime_filter_backup(f, (const char*)start, inend - start);
+		camel_mime_filter_backup(f, start, inend - start);
 		*outlen = starto - f->outbuf;
 	}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]