diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-05-02 19:05:06 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-05-02 19:05:06 +0000 |
commit | 8c01a0eab1d88a33d6c42c99e112e1fc5a91d90d (patch) | |
tree | c762ebf0efe7de06207bf3f9d97c69f956e4c65e /include/bfd.h | |
parent | 511a6d0ad67f876568ee48bd3b324648412abbc0 (diff) | |
download | gdb-8c01a0eab1d88a33d6c42c99e112e1fc5a91d90d.zip gdb-8c01a0eab1d88a33d6c42c99e112e1fc5a91d90d.tar.gz gdb-8c01a0eab1d88a33d6c42c99e112e1fc5a91d90d.tar.bz2 |
Make bfd_filename return a char *, not a const char *.
Diffstat (limited to 'include/bfd.h')
-rw-r--r-- | include/bfd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/bfd.h b/include/bfd.h index 7e8c547..80605fa 100644 --- 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) |