projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
511a6d0
)
Make bfd_filename return a char *, not a const char *.
author
Jim Kingdon
<jkingdon@engr.sgi.com>
Thu, 2 May 1991 19:05:06 +0000
(19:05 +0000)
committer
Jim Kingdon
<jkingdon@engr.sgi.com>
Thu, 2 May 1991 19:05:06 +0000
(19:05 +0000)
include/bfd.h
patch
|
blob
|
history
diff --git
a/include/bfd.h
b/include/bfd.h
index 7e8c54776134232bf73aecd5e3681b4293a6d0ce..80605fa86202545af359c97401f323f7b30c3017 100644
(file)
--- a/
include/bfd.h
+++ b/
include/bfd.h
@@
-551,7
+551,9
@@
extern CONST short _bfd_host_big_endian;
/* The bfd itself */
-#define bfd_get_filename(abfd) ((abfd)->filename)
+/* Cast from const char * to char * so that caller can assign to
+ a char * without a warning. */
+#define bfd_get_filename(abfd) ((char *) (abfd)->filename)
#define bfd_get_format(abfd) ((abfd)->format)
#define bfd_get_target(abfd) ((abfd)->xvec->name)
#define bfd_get_file_flags(abfd) ((abfd)->flags)