diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-03-07 10:32:38 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-03-07 10:32:38 +0000 |
commit | 0709bb22464041e573f935abf42b267822c6588e (patch) | |
tree | 43bcef217bc1e17e1e36bfc8f556e006c43f7447 | |
parent | b18e2ae59e62bbe2f1f06dbb772dfc525e519a6d (diff) | |
download | gdb-0709bb22464041e573f935abf42b267822c6588e.zip gdb-0709bb22464041e573f935abf42b267822c6588e.tar.gz gdb-0709bb22464041e573f935abf42b267822c6588e.tar.bz2 |
* opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
close is a function like macro in system headers.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/opncls.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 874c1b0..7ffe83f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-03-07 Jakub Jelinek <jakub@redhat.com> + + * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp. + close is a function like macro in system headers. + 2005-03-07 Alan Modra <amodra@bigpond.net.au> PR ld/778 diff --git a/bfd/opncls.c b/bfd/opncls.c index 091c316..788b034 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; } |