Author: bart
Date: 2008-02-23 19:04:44 +0000 (Sat, 23 Feb 2008)
New Revision: 7436

Log:
Added const keyword to second argument of VG_(OSetGen_Remove)().

Modified:
   trunk/coregrind/m_oset.c
   trunk/include/pub_tool_oset.h


Modified: trunk/coregrind/m_oset.c
===================================================================
--- trunk/coregrind/m_oset.c    2008-02-23 11:57:51 UTC (rev 7435)
+++ trunk/coregrind/m_oset.c    2008-02-23 19:04:44 UTC (rev 7436)
@@ -684,7 +684,7 @@
 }
 
 // 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);

Modified: trunk/include/pub_tool_oset.h
===================================================================
--- trunk/include/pub_tool_oset.h       2008-02-23 11:57:51 UTC (rev 7435)
+++ trunk/include/pub_tool_oset.h       2008-02-23 19:04:44 UTC (rev 7436)
@@ -239,7 +239,7 @@
 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 );
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to