This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix PR11382
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 17 Mar 2010 21:08:44 +1030
- Subject: Fix PR11382
Applied
* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
proper type.
Index: bfd/plugin.c
===================================================================
RCS file: /cvs/src/src/bfd/plugin.c,v
retrieving revision 1.6
diff -u -p -r1.6 plugin.c
--- bfd/plugin.c 27 Nov 2009 01:47:03 -0000 1.6
+++ bfd/plugin.c 17 Mar 2010 07:37:45 -0000
@@ -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);
--
Alan Modra
Australia Development Lab, IBM