From e8e47e4461aa7d2c3e0b523daf3b51bb55cbba65 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 23 Feb 2008 19:04:44 +0000 Subject: [PATCH] Added const keyword to second argument of VG_(OSetGen_Remove)(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7436 --- coregrind/m_oset.c | 2 +- include/pub_tool_oset.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coregrind/m_oset.c b/coregrind/m_oset.c index da4ef44682..e45b07beb6 100644 --- a/coregrind/m_oset.c +++ b/coregrind/m_oset.c @@ -684,7 +684,7 @@ static Bool avl_removeroot(AvlTree* t) } // Remove and return the element matching the key 'k', or NULL if not present. -void* VG_(OSetGen_Remove)(AvlTree* t, void* k) +void* VG_(OSetGen_Remove)(AvlTree* t, const void* k) { // Have to find the node first, then remove it. AvlNode* n = avl_lookup(t, k); diff --git a/include/pub_tool_oset.h b/include/pub_tool_oset.h index 7db0909f49..44b1a195fb 100644 --- a/include/pub_tool_oset.h +++ b/include/pub_tool_oset.h @@ -239,7 +239,7 @@ extern void VG_(OSetGen_Insert) ( OSet* os, void* elem ); extern Bool VG_(OSetGen_Contains) ( const OSet* os, const void* key ); extern void* VG_(OSetGen_Lookup) ( const OSet* os, const void* key ); extern void* VG_(OSetGen_LookupWithCmp)( OSet* os, const void* key, OSetCmp_t cmp ); -extern void* VG_(OSetGen_Remove) ( OSet* os, void* key ); +extern void* VG_(OSetGen_Remove) ( OSet* os, const void* key ); extern void VG_(OSetGen_ResetIter) ( OSet* os ); extern void* VG_(OSetGen_Next) ( OSet* os ); -- 2.47.3