[evolution-patches] Compilation warning fixes in camel-mime-filter-gzip.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-gzip.c	2006-10-17 10:28:18.000000000 +0200
+++ /home/pvanhoof/repos/gnome/cvs/evolution-data-server/camel/camel-mime-filter-gzip.c	2006-04-12 21:14:13.000000000 +0200
@@ -185,18 +185,18 @@
 		
 		memcpy (filter->outbuf, priv->hdr.buf, 10);
 		
-		priv->stream->next_out = (Bytef *)filter->outbuf + 10;
+		priv->stream->next_out = filter->outbuf + 10;
 		priv->stream->avail_out = filter->outsize - 10;
 		
 		priv->state.zip.wrote_hdr = TRUE;
 	} else {
 		camel_mime_filter_set_size (filter, (len * 2) + 12, FALSE);
 		
-		priv->stream->next_out = (Bytef *)filter->outbuf;
+		priv->stream->next_out = filter->outbuf;
 		priv->stream->avail_out = filter->outsize;
 	}
 	
-	priv->stream->next_in = (Bytef *)in;
+	priv->stream->next_in = in;
 	priv->stream->avail_in = len;
 	
 	do {
@@ -210,7 +210,7 @@
 			n = filter->outsize - priv->stream->avail_out;
 			camel_mime_filter_set_size (filter, n + (priv->stream->avail_in * 2) + 12, TRUE);
 			priv->stream->avail_out = filter->outsize - n;
-			priv->stream->next_out = (Bytef *)filter->outbuf + n;
+			priv->stream->next_out = filter->outbuf + n;
 			
 			if (priv->stream->avail_in == 0) {
 				guint32 val;
@@ -229,13 +229,13 @@
 			}
 		} else {
 			if (priv->stream->avail_in > 0)
-				camel_mime_filter_backup (filter, (const char *)priv->stream->next_in, priv->stream->avail_in);
+				camel_mime_filter_backup (filter, priv->stream->next_in, priv->stream->avail_in);
 			
 			break;
 		}
 	} while (1);
 	
-	priv->crc32 = crc32 (priv->crc32, (unsigned char*)in, len - priv->stream->avail_in);
+	priv->crc32 = crc32 (priv->crc32, in, len - priv->stream->avail_in);
 	priv->isize += len - priv->stream->avail_in;
 	
 	*out = filter->outbuf;
@@ -346,10 +346,10 @@
 	
 	camel_mime_filter_set_size (filter, (len * 2) + 12, FALSE);
 	
-	priv->stream->next_in = (Bytef *)in;
+	priv->stream->next_in = in;
 	priv->stream->avail_in = len - 8;
 	
-	priv->stream->next_out = (Bytef *)filter->outbuf;
+	priv->stream->next_out = filter->outbuf;
 	priv->stream->avail_out = filter->outsize;
 	
 	do {
@@ -368,12 +368,12 @@
 			n = filter->outsize - priv->stream->avail_out;
 			camel_mime_filter_set_size (filter, n + (priv->stream->avail_in * 2) + 12, TRUE);
 			priv->stream->avail_out = filter->outsize - n;
-			priv->stream->next_out = (Bytef *)filter->outbuf + n;
+			priv->stream->next_out = filter->outbuf + n;
 		} else {
 			priv->stream->avail_in += 8;
 			
 			if (priv->stream->avail_in > 0)
-				camel_mime_filter_backup (filter, (char*)priv->stream->next_in, priv->stream->avail_in);
+				camel_mime_filter_backup (filter, priv->stream->next_in, priv->stream->avail_in);
 			
 			break;
 		}


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