summaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-03-07 10:32:38 +0000
committerJakub Jelinek <jakub@redhat.com>2005-03-07 10:32:38 +0000
commit2ecae6fbb06bbcb6c1788c91e317827b7533fcbd (patch)
tree8a3bad9f9effa0e861e4f2c8c2ab9a549ad06a18 /bfd/opncls.c
parente190782e16cb84fc0041541288d2c23c70618b5a (diff)
downloadbinutils-redhat-2ecae6fbb06bbcb6c1788c91e317827b7533fcbd.tar.gz
* opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
close is a function like macro in system headers.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 091c3168bf..788b03484e 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -405,7 +405,7 @@ static file_ptr
opncls_bread (struct bfd *abfd, void *buf, file_ptr nbytes)
{
struct opncls *vec = abfd->iostream;
- file_ptr nread = vec->pread (abfd, vec->stream, buf, nbytes, vec->where);
+ file_ptr nread = (vec->pread) (abfd, vec->stream, buf, nbytes, vec->where);
if (nread < 0)
return nread;
vec->where += nread;
@@ -428,7 +428,7 @@ opncls_bclose (struct bfd *abfd)
free it. */
int status = 0;
if (vec->close != NULL)
- status = vec->close (abfd, vec->stream);
+ status = (vec->close) (abfd, vec->stream);
abfd->iostream = NULL;
return status;
}