summaryrefslogtreecommitdiff
path: root/gdb/mipsnbsd-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mipsnbsd-tdep.c')
-rw-r--r--gdb/mipsnbsd-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mipsnbsd-tdep.c b/gdb/mipsnbsd-tdep.c
index 7cb83c0f82c..390c088facc 100644
--- a/gdb/mipsnbsd-tdep.c
+++ b/gdb/mipsnbsd-tdep.c
@@ -56,7 +56,7 @@ mipsnbsd_supply_fpregset (const struct regset *regset,
int regnum, const void *fpregs, size_t len)
{
size_t regsize = mips_isa_regsize (get_regcache_arch (regcache));
- const char *regs = fpregs;
+ const char *regs = (const char *) fpregs;
int i;
gdb_assert (len >= MIPSNBSD_NUM_FPREGS * regsize);
@@ -79,7 +79,7 @@ mipsnbsd_supply_gregset (const struct regset *regset,
const void *gregs, size_t len)
{
size_t regsize = mips_isa_regsize (get_regcache_arch (regcache));
- const char *regs = gregs;
+ const char *regs = (const char *) gregs;
int i;
gdb_assert (len >= MIPSNBSD_NUM_GREGS * regsize);