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/coregrind/m_gdbserver/regcache.c b/coregrind/m_gdbserver/regcache.c
index 477c208..6b3d54b 100644
--- a/coregrind/m_gdbserver/regcache.c
+++ b/coregrind/m_gdbserver/regcache.c
@@ -164,7 +164,7 @@
convert_int_to_ascii (registers, buf, register_bytes);
}
-void registers_from_string (char *buf)
+void registers_from_string (const char *buf)
{
int len = strlen (buf);
unsigned char *registers = get_regcache (current_inferior, 1)->registers;
@@ -235,7 +235,7 @@
{
Bool new;
unsigned char bytes_register[register_size (n)];
- convert_ascii_to_int ((char *) buf, bytes_register, register_size (n));
+ convert_ascii_to_int (buf, bytes_register, register_size (n));
VG_(dmemcpy) (register_data_for_supply (n, 0, &new),
bytes_register, register_size (n), mod);
if (new)