Fix some casts that removed const-ness as pointed out by
GCC's -Wcast-qual.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13138 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c
index 8cd633f..6937d02 100644
--- a/cachegrind/cg_main.c
+++ b/cachegrind/cg_main.c
@@ -121,8 +121,8 @@
 static Word cmp_CodeLoc_LineCC(const void *vloc, const void *vcc)
 {
    Word res;
-   CodeLoc* a = (CodeLoc*)vloc;
-   CodeLoc* b = &(((LineCC*)vcc)->loc);
+   const CodeLoc* a = (const CodeLoc*)vloc;
+   const CodeLoc* b = &(((const LineCC*)vcc)->loc);
 
    res = VG_(strcmp)(a->file, b->file);
    if (0 != res)
@@ -191,7 +191,7 @@
 
 static Word stringCmp( const void* key, const void* elem )
 {
-   return VG_(strcmp)(*(HChar**)key, *(HChar**)elem);
+   return VG_(strcmp)(*(const HChar *const *)key, *(const HChar *const *)elem);
 }
 
 // Get a permanent string;  either pull it out of the string table if it's