|
From: <sv...@va...> - 2008-03-13 17:24:59
|
Author: bart
Date: 2008-03-13 17:24:54 +0000 (Thu, 13 Mar 2008)
New Revision: 7667
Log:
Removed casts from function pointer to regular pointer.
Modified:
trunk/memcheck/tests/oset_test.c
Modified: trunk/memcheck/tests/oset_test.c
===================================================================
--- trunk/memcheck/tests/oset_test.c 2008-03-13 12:05:35 UTC (rev 7666)
+++ trunk/memcheck/tests/oset_test.c 2008-03-13 17:24:54 UTC (rev 7667)
@@ -79,7 +79,7 @@
// 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 @@
// 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 @@
// 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) );
|