Minor constification in gdbreplay
authorTom Tromey <tromey@adacore.com>
Fri, 12 Feb 2021 17:25:59 +0000 (10:25 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 12 Feb 2021 17:26:43 +0000 (10:26 -0700)
I noticed a spot in gdbreplay where "const" could be used.

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

* gdbreplay.cc (remote_open): Constify.

gdbserver/ChangeLog
gdbserver/gdbreplay.cc

index def4049cee59356e73d1aa46be3d83f611f579a6..e98c43913fd7b74fa74f1261c49dcc4d8b5c47aa 100644 (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
index 438a6a60bdbba1bf167053c7774117bf9f7113a2..1a53b9880c0b668593113b2cde788762ac7b78f8 100644 (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)
     {
This page took 0.032467 seconds and 4 git commands to generate.