aboutsummaryrefslogtreecommitdiff
path: root/bfd/trad-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/trad-core.c')
-rw-r--r--bfd/trad-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/trad-core.c b/bfd/trad-core.c
index 70a478c..0d6321a 100644
--- a/bfd/trad-core.c
+++ b/bfd/trad-core.c
@@ -70,11 +70,11 @@ trad_unix_core_file_p (bfd *abfd)
#ifdef TRAD_CORE_USER_OFFSET
/* If defined, this macro is the file position of the user struct. */
- if (bfd_seek (abfd, (file_ptr) TRAD_CORE_USER_OFFSET, SEEK_SET) != 0)
+ if (bfd_seek (abfd, TRAD_CORE_USER_OFFSET, SEEK_SET) != 0)
return 0;
#endif
- val = bfd_bread ((void *) &u, (bfd_size_type) sizeof u, abfd);
+ val = bfd_read (&u, sizeof u, abfd);
if (val != sizeof u)
{
/* Too small to be a core file */