Changes to allow compilation with -Wwrite-strings. That compiler option
is not used for testcases, just for valgrind proper.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13137 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/helgrind/hg_errors.h b/helgrind/hg_errors.h
index eb22859..79c6fb5 100644
--- a/helgrind/hg_errors.h
+++ b/helgrind/hg_errors.h
@@ -56,16 +56,18 @@
void HG_(record_error_UnlockUnlocked) ( Thread*, Lock* );
void HG_(record_error_UnlockForeign) ( Thread*, Thread*, Lock* );
void HG_(record_error_UnlockBogus) ( Thread*, Addr );
-void HG_(record_error_PthAPIerror) ( Thread*, HChar*, Word, HChar* );
+void HG_(record_error_PthAPIerror) ( Thread*, const HChar*, Word,
+ const HChar* );
/* see the implementation for meaning of these params */
void HG_(record_error_LockOrder) ( Thread*, Addr, Addr,
ExeContext*, ExeContext*,
ExeContext* );
-void HG_(record_error_Misc_w_aux) ( Thread*, HChar* errstr,
- HChar* auxstr, ExeContext* auxctx );
-void HG_(record_error_Misc) ( Thread* thr, HChar* errstr );
+void HG_(record_error_Misc_w_aux) ( Thread*, const HChar* errstr,
+ const HChar* auxstr,
+ ExeContext* auxctx );
+void HG_(record_error_Misc) ( Thread* thr, const HChar* errstr );
/* Statistics pertaining to error management. */