aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-03-17 08:50:36 +0000
committerAlan Modra <amodra@gmail.com>2010-03-17 08:50:36 +0000
commitf4bacdc042988f66a06bbcacdd890aaaa9e897c9 (patch)
tree666de4aa97264c4ae737b0ab964d9d0b773af6bf
parent0002cc9f079d3850ca300692e9583f83bd5273eb (diff)
downloadgdb-f4bacdc042988f66a06bbcacdd890aaaa9e897c9.zip
gdb-f4bacdc042988f66a06bbcacdd890aaaa9e897c9.tar.gz
gdb-f4bacdc042988f66a06bbcacdd890aaaa9e897c9.tar.bz2
* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
proper type.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/plugin.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c3a00fd..1008a66 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2010-03-17 Alan Modra <amodra@gmail.com>
+ * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
+ proper type.
+
+2010-03-17 Alan Modra <amodra@gmail.com>
+
* elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
2010-03-16 Alan Modra <amodra@gmail.com>
diff --git a/bfd/plugin.c b/bfd/plugin.c
index 8cdc7ae..91bbfd1 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -240,7 +240,7 @@ bfd_plugin_object_p (bfd *abfd)
if (abfd->iostream)
{
- file.fd = fileno (abfd->iostream);
+ file.fd = fileno ((FILE *) abfd->iostream);
file.offset = 0;
file.filesize = 0; /*FIXME*/
}
@@ -248,7 +248,7 @@ bfd_plugin_object_p (bfd *abfd)
{
bfd *archive = abfd->my_archive;
BFD_ASSERT (archive);
- file.fd = fileno (archive->iostream);
+ file.fd = fileno ((FILE *) archive->iostream);
file.offset = abfd->origin;
file.filesize = arelt_size (abfd);