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:
parent
c46b706620
commit
c054dcd552
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user