summaryrefslogtreecommitdiff
path: root/bfd/bfdio.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2006-11-20 02:09:56 +0000
committerAlan Modra <amodra@bigpond.net.au>2006-11-20 02:09:56 +0000
commit1dcdda88894990e91dd2fadf966a9aafe8333447 (patch)
tree9546528b3aec1355bdbf4d598c275800928377f3 /bfd/bfdio.c
parente67d01d8a631ddf16b590e0c13074401311a8e2f (diff)
downloadgdb-1dcdda88894990e91dd2fadf966a9aafe8333447.tar.gz
* bfd-in.h (struct stat): Don't typedef.
* bfdio.c (bfd_get_size): Return a file_ptr. * cisco-core.c (cisco_core_file_validate): Use bfd_size_type for nread. * mmo.c (mmo_scan): Use file_ptr for curpos. * trad-core.c (trad_unix_core): Don't cast statbuf.st_size to unsigned long. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfdio.c')
-rw-r--r--bfd/bfdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index 22ea886b5cb..0aa82a9d2e2 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -401,7 +401,7 @@ FUNCTION
bfd_get_size
SYNOPSIS
- long bfd_get_size (bfd *abfd);
+ file_ptr bfd_get_size (bfd *abfd);
DESCRIPTION
Return the file size (as read from file system) for the file
@@ -429,7 +429,7 @@ DESCRIPTION
size reasonable?".
*/
-long
+file_ptr
bfd_get_size (bfd *abfd)
{
struct stat buf;