Constify argument to make_tempname and make_tempdir
authorTom Tromey <tom@tromey.com>
Sun, 8 Sep 2019 15:53:43 +0000 (09:53 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 11 Sep 2019 13:02:46 +0000 (07:02 -0600)
commit1ff5d5c46342727ad6728732e122f963fbb2268b
tree44aa813121fce09cde35afe2068b7c5ece838a0e
parent0a4632b5637fa63ea4dc7651cdbae21e8b7005cd
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.
binutils/ChangeLog
binutils/bucomm.c
binutils/bucomm.h
binutils/objcopy.c