]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Removed casts from function pointer to regular pointer.
authorBart Van Assche <bvanassche@acm.org>
Thu, 13 Mar 2008 17:24:54 +0000 (17:24 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 13 Mar 2008 17:24:54 +0000 (17:24 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7667

memcheck/tests/oset_test.c

index 5b05258ed58f2446e7a4a3130322aeca4c3b1980..4bf6686b1a6b0c9f975024910db2d9d576545d1b 100644 (file)
@@ -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) );