aboutsummaryrefslogtreecommitdiff
path: root/bfd/aout-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/aout-target.h')
-rw-r--r--bfd/aout-target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index 7765f5c..f427ffc 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -136,7 +136,7 @@ MY (object_p) (bfd *abfd)
bfd_cleanup cleanup;
size_t amt = EXEC_BYTES_SIZE;
- if (bfd_bread ((void *) &exec_bytes, amt, abfd) != amt)
+ if (bfd_read (&exec_bytes, amt, abfd) != amt)
{
if (bfd_get_error () != bfd_error_system_call)
bfd_set_error (bfd_error_wrong_format);