* Fix bfd_close for BFD_IN_MEMORY
@ 2004-10-24 18:45 Daniel Jacobowitz
0 siblings, 0 replies; only message in thread
From: Daniel Jacobowitz @ 2004-10-24 18:45 UTC (permalink / raw)
To: binutils; +Cc: gdb-patches
This patch fixes the return value of bfd_close for the BFD_IN_MEMORY
case; it was always returning failure, instead of always returning
success. I'll commit this as obvious.
--
Daniel Jacobowitz
2004-10-24 Daniel Jacobowitz <dan@debian.org>
* opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
Index: bfd/opncls.c
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/bfd/opncls.c,v
retrieving revision 1.25
diff -u -p -r1.25 opncls.c
--- bfd/opncls.c 10 Oct 2004 13:58:05 -0000 1.25
+++ bfd/opncls.c 24 Oct 2004 17:52:53 -0000
@@ -598,7 +598,7 @@ bfd_close (bfd *abfd)
if (!(abfd->flags & BFD_IN_MEMORY))
ret = abfd->iovec->bclose (abfd);
else
- ret = 0;
+ ret = TRUE;
/* If the file was open for writing and is now executable,
make it so. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-24 18:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-24 18:45 Fix bfd_close for BFD_IN_MEMORY Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).