Minor constification in gdbreplay

I noticed a spot in gdbreplay where "const" could be used.

2021-02-12  Tom Tromey  <tromey@adacore.com>

	* gdbreplay.cc (remote_open): Constify.
This commit is contained in:
Tom Tromey 2021-02-12 10:25:59 -07:00
parent c46b706620
commit c054dcd552
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2021-02-12 Tom Tromey <tromey@adacore.com>
* gdbreplay.cc (remote_open): Constify.
2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
* Makefile.in (UNDO_GNULIB_CFLAGS): Disable

View File

@ -151,9 +151,9 @@ remote_close (void)
NAME is the filename used for communication. */
static void
remote_open (char *name)
remote_open (const char *name)
{
char *last_colon = strrchr (name, ':');
const char *last_colon = strrchr (name, ':');
if (last_colon == NULL)
{