mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-19 14:34:07 +08:00
* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
proper type.
This commit is contained in:
parent
0002cc9f07
commit
f4bacdc042
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user