mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
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:
parent
b9ab0bb0b0
commit
c717c5071d
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user