From: Julian Seward Date: Mon, 10 Aug 2009 19:39:02 +0000 (+0000) Subject: Fix some const stuff that gcc-4.4.0 complains about. X-Git-Tag: svn/VALGRIND_3_5_0~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f3ce096adfb0b325781c8b353466d106b798a97;p=thirdparty%2Fvalgrind.git Fix some const stuff that gcc-4.4.0 complains about. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10771 --- diff --git a/coregrind/m_redir.c b/coregrind/m_redir.c index fd7d046ce5..98a502fe76 100644 --- a/coregrind/m_redir.c +++ b/coregrind/m_redir.c @@ -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);