Commit 353560b440cd40c0ed6b9bffeea9b0c0cc70583b

Sebastian Schuberth 2011-09-08T14:29:54

Get rid of a superfluous pointer cast

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/filebuf.c b/src/filebuf.c
index 9388d8b..70245b5 100644
--- a/src/filebuf.c
+++ b/src/filebuf.c
@@ -116,7 +116,7 @@ static int write_deflate(git_filebuf *file, void *source, size_t len)
 	z_stream *zs = &file->zs;
 
 	if (len > 0 || file->flush_mode == Z_FINISH) {
-		zs->next_in = (void *)source;
+		zs->next_in = source;
 		zs->avail_in = len;
 
 		do {