This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Add cast in nto-tdep.c
- From: Simon Marchi <simark at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 22 Oct 2015 15:59:13 -0000
- Subject: [binutils-gdb] Add cast in nto-tdep.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fb70bc1a74d371cc6cc07e018df436a17c26037e
commit fb70bc1a74d371cc6cc07e018df436a17c26037e
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Thu Oct 22 11:58:38 2015 -0400
Add cast in nto-tdep.c
gdb/ChangeLog:
* nto-tdep.c (nto_inferior_data): Add cast.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/nto-tdep.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 65d056b..7dba15d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
+
+ * nto-tdep.c (nto_inferior_data): Add cast.
+
2015-10-22 Pedro Alves <palves@redhat.com>
* windows-nat.c (do_initial_windows_stuff): Rewrite loop using
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index fdf6c81..c2b8e43 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -552,7 +552,8 @@ nto_inferior_data (struct inferior *const inferior)
gdb_assert (inf != NULL);
- inf_data = inferior_data (inf, nto_inferior_data_reg);
+ inf_data
+ = (struct nto_inferior_data *) inferior_data (inf, nto_inferior_data_reg);
if (inf_data == NULL)
{
set_inferior_data (inf, nto_inferior_data_reg,