From: Jakub Jelinek Date: Mon, 7 Mar 2005 10:32:38 +0000 (+0000) Subject: * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=0709bb22464041e573f935abf42b267822c6588e;p=deliverable%2Fbinutils-gdb.git * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp. close is a function like macro in system headers. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 874c1b0166..7ffe83f557 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-03-07 Jakub Jelinek + + * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp. + close is a function like macro in system headers. + 2005-03-07 Alan Modra PR ld/778 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; }