summaryrefslogtreecommitdiff
path: root/gdbserver/gdbreplay.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-02-12 10:25:59 -0700
committerTom Tromey <tromey@adacore.com>2021-02-12 10:26:43 -0700
commitc054dcd552c6ef094376d820b42d0cc6ab717e43 (patch)
tree76b549183aa4a8696f3b0e92e0c3949c5560f3dc /gdbserver/gdbreplay.cc
parentc46b706620eb9b27fa06e26406ffa4f79d9292e6 (diff)
downloadbinutils-gdb-c054dcd552c6ef094376d820b42d0cc6ab717e43.tar.gz
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.
Diffstat (limited to 'gdbserver/gdbreplay.cc')
-rw-r--r--gdbserver/gdbreplay.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/gdbreplay.cc b/gdbserver/gdbreplay.cc
index 438a6a60bdb..1a53b9880c0 100644
--- a/gdbserver/gdbreplay.cc
+++ b/gdbserver/gdbreplay.cc
@@ -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)
{