]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Mar 2005 10:32:38 +0000 (10:32 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 7 Mar 2005 10:32:38 +0000 (10:32 +0000)
close is a function like macro in system headers.

bfd/ChangeLog
bfd/opncls.c

index 874c1b01662aff66236050287428c337672fad0e..7ffe83f557dac03d6e465f58d69e536afb39cd53 100644 (file)
@@ -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
index 091c3168bf916250cfbaf19dd959cdd4a9eed69e..788b03484e3884fb5b1ed5ea985133324ea53f6e 100644 (file)
@@ -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;
 }