]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix some const stuff that gcc-4.4.0 complains about.
authorJulian Seward <jseward@acm.org>
Mon, 10 Aug 2009 19:39:02 +0000 (19:39 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 10 Aug 2009 19:39:02 +0000 (19:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10771

coregrind/m_redir.c

index fd7d046ce510a3f74a6203db16b30c85d055d8a6..98a502fe765a7b040297b7a59ccaf272de0b4229 100644 (file)
@@ -223,9 +223,9 @@ typedef
       HChar* from_fnpatt;  /* from fnname pattern  */
       Addr   to_addr;      /* where redirecting to */
       Bool   isWrap;       /* wrap or replacement? */
-      HChar** mandatory;   /* non-NULL ==> abort V and print the
-                              strings if from_sopatt is loaded but
-                              from_fnpatt cannot be found */
+      const HChar** mandatory; /* non-NULL ==> abort V and print the
+                                  strings if from_sopatt is loaded but
+                                  from_fnpatt cannot be found */
       /* VARIABLE PARTS -- used transiently whilst processing redirections */
       Bool   mark; /* set if spec requires further processing */
       Bool   done; /* set if spec was successfully matched */
@@ -555,7 +555,7 @@ void generate_and_add_actives (
          break;
    }
    if (sp) {
-      HChar** strp;
+      const HChar** strp;
       HChar* v = "valgrind:  ";
       vg_assert(sp->mark);
       vg_assert(!sp->done);
@@ -813,7 +813,7 @@ static void add_hardwired_active ( Addr from, Addr to )
 __attribute__((unused)) /* not used on all platforms */
 static void add_hardwired_spec ( HChar* sopatt, HChar* fnpatt, 
                                  Addr   to_addr,
-                                 HChar** mandatory )
+                                 const HChar** mandatory )
 {
    Spec* spec = dinfo_zalloc("redir.ahs.1", sizeof(Spec));
    vg_assert(spec);