diff options
author | Alan Modra <amodra@gmail.com> | 2006-11-20 02:09:56 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-11-20 02:09:56 +0000 |
commit | 74633dd0749d738b2b6de5c44e4aea514a97019a (patch) | |
tree | a3a055551bd59561c578d940fc5dc63e09bc0480 /bfd/trad-core.c | |
parent | PR 3532 (diff) | |
download | binutils-gdb-74633dd0749d738b2b6de5c44e4aea514a97019a.tar.gz binutils-gdb-74633dd0749d738b2b6de5c44e4aea514a97019a.tar.bz2 binutils-gdb-74633dd0749d738b2b6de5c44e4aea514a97019a.zip |
* 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/trad-core.c')
-rw-r--r-- | bfd/trad-core.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bfd/trad-core.c b/bfd/trad-core.c index 2b309c0b084..c3884fb62b8 100644 --- a/bfd/trad-core.c +++ b/bfd/trad-core.c @@ -114,24 +114,24 @@ trad_unix_core_file_p (abfd) if (bfd_stat (abfd, &statbuf) < 0) return 0; - if ((unsigned long) (NBPG * (UPAGES + u.u_dsize + if ((ufile_ptr) NBPG * (UPAGES + u.u_dsize #ifdef TRAD_CORE_DSIZE_INCLUDES_TSIZE - - u.u_tsize + - u.u_tsize #endif - + u.u_ssize)) - > (unsigned long) statbuf.st_size) + + u.u_ssize) + > (ufile_ptr) statbuf.st_size) { bfd_set_error (bfd_error_wrong_format); return 0; } #ifndef TRAD_CORE_ALLOW_ANY_EXTRA_SIZE - if ((unsigned long) (NBPG * (UPAGES + u.u_dsize + u.u_ssize) + if (((ufile_ptr) NBPG * (UPAGES + u.u_dsize + u.u_ssize) #ifdef TRAD_CORE_EXTRA_SIZE_ALLOWED /* Some systems write the file too big. */ - + TRAD_CORE_EXTRA_SIZE_ALLOWED + + TRAD_CORE_EXTRA_SIZE_ALLOWED #endif - ) - < (unsigned long) statbuf.st_size) + ) + < (ufile_ptr) statbuf.st_size) { /* The file is too big. Maybe it's not a core file or we otherwise have bad values for u_dsize and u_ssize). */ |