Commit d88abb89495654b68d10e40e17e4d57fe21b6f9b

Edward Thomson 2015-06-29T21:54:06

filter test: pass base type

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/tests/filter/file.c b/tests/filter/file.c
index 8243a02..599f4e5 100644
--- a/tests/filter/file.c
+++ b/tests/filter/file.c
@@ -91,9 +91,9 @@ void test_filter_file__apply_stream(void)
 
 	cl_git_pass(git_filter_list_push(fl, crlf, NULL));
 
-	cl_git_pass(git_filter_list_stream_file(fl, g_repo, "all-crlf", (git_writestream *)&write_target));
+	cl_git_pass(git_filter_list_stream_file(fl, g_repo, "all-crlf", &write_target.base));
 	cl_assert_equal_s("crlf\ncrlf\ncrlf\ncrlf\n", write_target.buf.ptr);
 
 	git_filter_list_free(fl);
-	write_target.base.free((struct git_writestream *)&write_target);
+	write_target.base.free(&write_target.base);
 }