|
From: <sv...@va...> - 2009-08-10 19:39:10
|
Author: sewardj
Date: 2009-08-10 20:39:02 +0100 (Mon, 10 Aug 2009)
New Revision: 10771
Log:
Fix some const stuff that gcc-4.4.0 complains about.
Modified:
trunk/coregrind/m_redir.c
Modified: trunk/coregrind/m_redir.c
===================================================================
--- trunk/coregrind/m_redir.c 2009-08-10 18:59:54 UTC (rev 10770)
+++ trunk/coregrind/m_redir.c 2009-08-10 19:39:02 UTC (rev 10771)
@@ -223,9 +223,9 @@
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 @@
break;
}
if (sp) {
- HChar** strp;
+ const HChar** strp;
HChar* v = "valgrind: ";
vg_assert(sp->mark);
vg_assert(!sp->done);
@@ -813,7 +813,7 @@
__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);
|