summaryrefslogtreecommitdiff
path: root/binutils/bucomm.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2009-01-29 13:03:21 +0000
committerAlan Modra <amodra@bigpond.net.au>2009-01-29 13:03:21 +0000
commit5993144b13413ecb646ec572872a7fcb955d15e6 (patch)
tree5160bfa89bfdf45260d5f55011bf25676a891c60 /binutils/bucomm.h
parentc3c4d215edcf19140ceda4b3d6632248c93c3ea7 (diff)
downloadbinutils-redhat-5993144b13413ecb646ec572872a7fcb955d15e6.tar.gz
PR 9798
* bucomm.c (bfd_nonfatal_message): Use bfd_get_archive_filename. (bfd_get_archive_filename): Constify param. * bucomm.h (bfd_get_archive_filename): Update prototype. * objcopy.c (RETURN_NONFATAL): Delete. (copy_unknown_object): Don't call bfd_get_archive_filename for bfd_nonfatal_message filename, instead just pass bfd. (copy_object): Likewise. (copy_archive, copy_file): Likewise. Expand RETURN_NONFATAL. On bfd_close errors, do not pass the bfd to bfd_nonfatal_message. (setup_bfd_headers): Fix error message.
Diffstat (limited to 'binutils/bucomm.h')
-rw-r--r--binutils/bucomm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/bucomm.h b/binutils/bucomm.h
index 08c166b4c9..74164e76a3 100644
--- a/binutils/bucomm.h
+++ b/binutils/bucomm.h
@@ -1,6 +1,6 @@
/* bucomm.h -- binutils common include file.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
+ 2001, 2002, 2003, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -23,7 +23,7 @@
#define _BUCOMM_H
/* Return the filename in a static buffer. */
-const char *bfd_get_archive_filename (bfd *);
+const char *bfd_get_archive_filename (const bfd *);
void bfd_nonfatal (const char *);