projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gas/
[deliverable/binutils-gdb.git]
/
bfd
/
cache.c
diff --git
a/bfd/cache.c
b/bfd/cache.c
index 3842f517d1fe8c1942f157d195520ab49d8aab7e..b1dcd5a745b63f282308066ce98df7cc20baba27 100644
(file)
--- a/
bfd/cache.c
+++ b/
bfd/cache.c
@@
-359,7
+359,7
@@
cache_bwrite (struct bfd *abfd, const void *where, file_ptr nbytes)
return nwrite;
}
return nwrite;
}
-static
int
+static
bfd_boolean
cache_bclose (struct bfd *abfd)
{
return bfd_cache_close (abfd);
cache_bclose (struct bfd *abfd)
{
return bfd_cache_close (abfd);
@@
-437,7
+437,7
@@
cache_bmmap (struct bfd *abfd ATTRIBUTE_UNUSED,
{
*map_addr = ret;
*map_len = pg_len;
{
*map_addr = ret;
*map_len = pg_len;
- ret
+= offset & pagesize_m1
;
+ ret
= (char *) ret + (offset & pagesize_m1)
;
}
}
#endif
}
}
#endif
@@
-563,15
+563,15
@@
bfd_open_file (bfd *abfd)
{
case read_direction:
case no_direction:
{
case read_direction:
case no_direction:
- abfd->iostream =
(PTR)
real_fopen (abfd->filename, FOPEN_RB);
+ abfd->iostream = real_fopen (abfd->filename, FOPEN_RB);
break;
case both_direction:
case write_direction:
if (abfd->opened_once)
{
break;
case both_direction:
case write_direction:
if (abfd->opened_once)
{
- abfd->iostream =
(PTR)
real_fopen (abfd->filename, FOPEN_RUB);
+ abfd->iostream = real_fopen (abfd->filename, FOPEN_RUB);
if (abfd->iostream == NULL)
if (abfd->iostream == NULL)
- abfd->iostream =
(PTR)
real_fopen (abfd->filename, FOPEN_WUB);
+ abfd->iostream = real_fopen (abfd->filename, FOPEN_WUB);
}
else
{
}
else
{
@@
-601,7
+601,7
@@
bfd_open_file (bfd *abfd)
if (stat (abfd->filename, &s) == 0 && s.st_size != 0)
unlink_if_ordinary (abfd->filename);
#endif
if (stat (abfd->filename, &s) == 0 && s.st_size != 0)
unlink_if_ordinary (abfd->filename);
#endif
- abfd->iostream =
(PTR)
real_fopen (abfd->filename, FOPEN_WUB);
+ abfd->iostream = real_fopen (abfd->filename, FOPEN_WUB);
abfd->opened_once = TRUE;
}
break;
abfd->opened_once = TRUE;
}
break;
This page took
0.026733 seconds
and
4
git commands to generate.