diff options
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index d6ab93d..9a6e7de 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -65,7 +65,8 @@ solib_init (struct obstack *obstack) static const struct target_so_ops * solib_ops (struct gdbarch *gdbarch) { - const struct target_so_ops **ops = gdbarch_data (gdbarch, solib_data); + const struct target_so_ops **ops + = (const struct target_so_ops **) gdbarch_data (gdbarch, solib_data); return *ops; } @@ -75,7 +76,8 @@ solib_ops (struct gdbarch *gdbarch) void set_solib_ops (struct gdbarch *gdbarch, const struct target_so_ops *new_ops) { - const struct target_so_ops **ops = gdbarch_data (gdbarch, solib_data); + const struct target_so_ops **ops + = (const struct target_so_ops **) gdbarch_data (gdbarch, solib_data); *ops = new_ops; } |