diff options
author | Tom Tromey <tom@tromey.com> | 2019-09-08 09:53:43 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-09-11 07:02:46 -0600 |
commit | 1ff5d5c46342727ad6728732e122f963fbb2268b (patch) | |
tree | 44aa813121fce09cde35afe2068b7c5ece838a0e /binutils/bucomm.h | |
parent | 0a4632b5637fa63ea4dc7651cdbae21e8b7005cd (diff) | |
download | gdb-1ff5d5c46342727ad6728732e122f963fbb2268b.zip gdb-1ff5d5c46342727ad6728732e122f963fbb2268b.tar.gz gdb-1ff5d5c46342727ad6728732e122f963fbb2268b.tar.bz2 |
Constify argument to make_tempname and make_tempdir
This constifies the argument to make_tempname and make_tempdir,
removing some casts.
I initially thought that this obsoleted the allocation in
write_archive, but write_archive closes the BFD before using the name,
so this appears not to be the case.
binutils/ChangeLog
2019-09-11 Tom Tromey <tom@tromey.com>
* objcopy.c (copy_archive): Update.
* bucomm.h (make_tempname, make_tempdir): Make argument const.
* bucomm.c (make_tempname, make_tempdir): Make argument const.
Diffstat (limited to 'binutils/bucomm.h')
-rw-r--r-- | binutils/bucomm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/bucomm.h b/binutils/bucomm.h index 4ab96bc..35c8cd3 100644 --- a/binutils/bucomm.h +++ b/binutils/bucomm.h @@ -51,8 +51,8 @@ int display_info (void); void print_arelt_descr (FILE *, bfd *, bfd_boolean, bfd_boolean); -char *make_tempname (char *); -char *make_tempdir (char *); +char *make_tempname (const char *); +char *make_tempdir (const char *); bfd_vma parse_vma (const char *, const char *); |