From f4bacdc042988f66a06bbcacdd890aaaa9e897c9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 17 Mar 2010 08:50:36 +0000 Subject: * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using proper type. --- bfd/plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/plugin.c') diff --git a/bfd/plugin.c b/bfd/plugin.c index 8cdc7ae2dd..91bbfd1ff3 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); -- cgit v1.2.3