Declared those function arguments that are not modified as const.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9245
This commit is contained in:
Bart Van Assche 2009-02-23 19:12:02 +00:00
parent b9ab0bb0b0
commit c717c5071d
2 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ void* fast_key_of_node(AvlNode* n)
}
// Compare the first word of each element. Inlining is *crucial*.
static inline Word fast_cmp(void* k, AvlNode* n)
static inline Word fast_cmp(const void* k, const AvlNode* n)
{
UWord w1 = *(UWord*)k;
UWord w2 = *(UWord*)elem_of_node(n);
@ -785,7 +785,7 @@ Bool VG_(OSetWord_Next)(AvlTree* t, UWord* val)
// produced VG_(OSetGen_Next) is the smallest key in the map
// >= start_at. Naturally ">=" is defined by the comparison
// function supplied to VG_(OSetGen_Create).
void VG_(OSetGen_ResetIterAt)(AvlTree* oset, void* k)
void VG_(OSetGen_ResetIterAt)(AvlTree* oset, const void* k)
{
Int i;
AvlNode *n, *t;

View File

@ -250,7 +250,7 @@ extern void* VG_(OSetGen_Next) ( OSet* os );
// produced VG_(OSetGen_Next) is the smallest key in the map
// >= start_at. Naturally ">=" is defined by the comparison
// function supplied to VG_(OSetGen_Create).
extern void VG_(OSetGen_ResetIterAt) ( OSet* oset, void* key );
extern void VG_(OSetGen_ResetIterAt) ( OSet* oset, const void* key );
#endif // __PUB_TOOL_OSET_H