* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using

proper type.
This commit is contained in:
Alan Modra 2010-03-17 08:50:36 +00:00
parent 0002cc9f07
commit f4bacdc042
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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);