aboutsummaryrefslogtreecommitdiff
path: root/bfd/compress.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-12-05 15:13:23 +1030
committerAlan Modra <amodra@gmail.com>2022-12-05 15:15:15 +1030
commit47afa56ee2bba22111df848ebeeec8c0a616ae73 (patch)
tree9f2e818f4da3fc2c75f0bfd540ab9172b08494c1 /bfd/compress.c
parent125b7ff73a691353de114149a3a3951828cfb2be (diff)
downloadfsf-binutils-gdb-47afa56ee2bba22111df848ebeeec8c0a616ae73.zip
fsf-binutils-gdb-47afa56ee2bba22111df848ebeeec8c0a616ae73.tar.gz
fsf-binutils-gdb-47afa56ee2bba22111df848ebeeec8c0a616ae73.tar.bz2
Re: Renaming .debug to .zdebug and vice versa
* compress.c (bfd_debug_name_to_zdebug): Fix C++ compile error. (bfd_zdebug_name_to_debug): Likewise. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/compress.c')
-rw-r--r--bfd/compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/compress.c b/bfd/compress.c
index 9557984..3d8c1d7 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -36,7 +36,7 @@ CODE_FRAGMENT
.bfd_debug_name_to_zdebug (bfd *abfd, const char *name)
.{
. size_t len = strlen (name);
-. char *new_name = bfd_alloc (abfd, len + 2);
+. char *new_name = (char *) bfd_alloc (abfd, len + 2);
. if (new_name == NULL)
. return NULL;
. new_name[0] = '.';
@@ -49,7 +49,7 @@ CODE_FRAGMENT
.bfd_zdebug_name_to_debug (bfd *abfd, const char *name)
.{
. size_t len = strlen (name);
-. char *new_name = bfd_alloc (abfd, len);
+. char *new_name = (char *) bfd_alloc (abfd, len);
. if (new_name == NULL)
. return NULL;
. new_name[0] = '.';