Author: tom
Date: 2008-01-04 23:58:32 +0000 (Fri, 04 Jan 2008)
New Revision: 7316

Log:
Add const qualifiers to fix compiler warnings.

Patch from Bart Van Assche <[EMAIL PROTECTED]>.

Modified:
   trunk/memcheck/tests/oset_test.c


Modified: trunk/memcheck/tests/oset_test.c
===================================================================
--- trunk/memcheck/tests/oset_test.c    2008-01-04 23:57:15 UTC (rev 7315)
+++ trunk/memcheck/tests/oset_test.c    2008-01-04 23:58:32 UTC (rev 7316)
@@ -347,10 +347,10 @@
    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;


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

Reply via email to