]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add const qualifiers to fix compiler warnings.
authorTom Hughes <tom@compton.nu>
Fri, 4 Jan 2008 23:58:32 +0000 (23:58 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 4 Jan 2008 23:58:32 +0000 (23:58 +0000)
Patch from Bart Van Assche <bart.vanassche@gmail.com>.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7316

memcheck/tests/oset_test.c

index b2b95794d4b967a473aae2483dfab732418a647d..ee99beb18c915bb0513ebec54b669800fcf58659 100644 (file)
@@ -347,10 +347,10 @@ static Char *blockToStr(void *p)
    return buf;
 }
 
-static Word blockCmp(void* vkey, void* velem)
+static Word blockCmp(const void* vkey, const void* velem)
 {
-   Addr   key  = *(Addr*)vkey;
-   Block* elem = (Block*)velem;
+   Addr   key  = *(const Addr*)vkey;
+   const Block* elem = (const Block*)velem;
 
    assert(elem->first <= elem->last);
    if (key < elem->first) return -1;