Changed many, but not all, of the VgHashNode* parameters and return
types in m_hashtable.c to void*. This requires no changes to code
already using VgHashTables, but it allows some previously-required casts
to be removed. I also changed Memcheck and Massif by removing some of
these now-unnecessary casts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4404 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/massif/ms_main.c b/massif/ms_main.c
index bff4de5..7a278ca 100644
--- a/massif/ms_main.c
+++ b/massif/ms_main.c
@@ -690,7 +690,7 @@
if (0 != size)
update_XCon(hc->where, size);
}
- VG_(HT_add_node)(malloc_list, (VgHashNode*)hc);
+ VG_(HT_add_node)(malloc_list, hc);
n_heap_blocks++;
// do a census!
@@ -821,7 +821,7 @@
// will have removed and then re-added mc unnecessarily. But that's ok
// because shrinking a block with realloc() is (presumably) much rarer
// than growing it, and this way simplifies the growing case.
- VG_(HT_add_node)(malloc_list, (VgHashNode*)hc);
+ VG_(HT_add_node)(malloc_list, hc);
VGP_POPCC(VgpCliMalloc);
return p_new;