From: Alan Modra Date: Wed, 17 Mar 2010 08:50:36 +0000 (+0000) Subject: * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4bacdc042988f66a06bbcacdd890aaaa9e897c9;p=binutils-gdb.git * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using proper type. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c3a00fdda72..1008a6619a1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-03-17 Alan Modra + + * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using + proper type. + 2010-03-17 Alan Modra * elf32-arm.c (cortex_a8_erratum_scan): Warning fix. diff --git a/bfd/plugin.c b/bfd/plugin.c index 8cdc7ae2dde..91bbfd1ff3c 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);