From: Tom Tromey Date: Fri, 12 Feb 2021 17:25:59 +0000 (-0700) Subject: Minor constification in gdbreplay X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c054dcd552c6ef094376d820b42d0cc6ab717e43;p=binutils-gdb.git Minor constification in gdbreplay I noticed a spot in gdbreplay where "const" could be used. 2021-02-12 Tom Tromey * gdbreplay.cc (remote_open): Constify. --- diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index def4049cee5..e98c43913fd 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2021-02-12 Tom Tromey + + * gdbreplay.cc (remote_open): Constify. + 2021-02-05 Paul E. Murphy * Makefile.in (UNDO_GNULIB_CFLAGS): Disable 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) {