projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New "find" command.
[deliverable/binutils-gdb.git]
/
bfd
/
bfdio.c
diff --git
a/bfd/bfdio.c
b/bfd/bfdio.c
index 080cd947f81834a0a7e79c104d2ea235305566aa..d8aa1de99926761fa015bab24c49798563cec37b 100644
(file)
--- a/
bfd/bfdio.c
+++ b/
bfd/bfdio.c
@@
-1,7
+1,7
@@
/* Low-level I/O routines for BFDs.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
/* Low-level I/O routines for BFDs.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
, 2008
Free Software Foundation, Inc.
Written by Cygnus Support.
Free Software Foundation, Inc.
Written by Cygnus Support.
@@
-174,8
+174,8
@@
bfd_bwrite (const void *ptr, bfd_size_type size, bfd *abfd)
newsize = (bim->size + 127) & ~(bfd_size_type) 127;
if (newsize > oldsize)
{
newsize = (bim->size + 127) & ~(bfd_size_type) 127;
if (newsize > oldsize)
{
- bim->buffer = bfd_realloc (bim->buffer, newsize);
- if (bim->buffer ==
0
)
+ bim->buffer = bfd_realloc
_or_free
(bim->buffer, newsize);
+ if (bim->buffer ==
NULL
)
{
bim->size = 0;
return 0;
{
bim->size = 0;
return 0;
@@
-298,8
+298,8
@@
bfd_seek (bfd *abfd, file_ptr position, int direction)
newsize = (bim->size + 127) & ~(bfd_size_type) 127;
if (newsize > oldsize)
{
newsize = (bim->size + 127) & ~(bfd_size_type) 127;
if (newsize > oldsize)
{
- bim->buffer = bfd_realloc (bim->buffer, newsize);
- if (bim->buffer ==
0
)
+ bim->buffer = bfd_realloc
_or_free
(bim->buffer, newsize);
+ if (bim->buffer ==
NULL
)
{
bim->size = 0;
return -1;
{
bim->size = 0;
return -1;
This page took
0.024496 seconds
and
4
git commands to generate.