From: Bart Van Assche Date: Thu, 13 Mar 2008 17:24:54 +0000 (+0000) Subject: Removed casts from function pointer to regular pointer. X-Git-Tag: svn/VALGRIND_3_4_0~889 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6d74ad8813eb928b2053a8f5a75496a59420ea7;p=thirdparty%2Fvalgrind.git Removed casts from function pointer to regular pointer. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7667 --- diff --git a/memcheck/tests/oset_test.c b/memcheck/tests/oset_test.c index 5b05258ed5..4bf6686b1a 100644 --- a/memcheck/tests/oset_test.c +++ b/memcheck/tests/oset_test.c @@ -79,7 +79,7 @@ void example1(void) // comparisons. OSet* oset = VG_(OSetGen_Create)(0, NULL, - (void*)malloc, free); + malloc, free); // Try some operations on an empty OSet to ensure they don't screw up. vg_assert( ! VG_(OSetGen_Contains)(oset, &v) ); @@ -212,7 +212,7 @@ void example1b(void) // Create a static OSet of Ints. This one uses fast (built-in) // comparisons. - OSet* oset = VG_(OSetWord_Create)( (void*)malloc, free); + OSet* oset = VG_(OSetWord_Create)(malloc, free); // Try some operations on an empty OSet to ensure they don't screw up. vg_assert( ! VG_(OSetWord_Contains)(oset, v) ); @@ -370,7 +370,7 @@ void example2(void) // comparisons. OSet* oset = VG_(OSetGen_Create)(offsetof(Block, first), blockCmp, - (void*)malloc, free); + malloc, free); // Try some operations on an empty OSet to ensure they don't screw up. vg_assert( ! VG_(OSetGen_Contains)(oset, &v) );