Constify some commands in thread.c

gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

	* thread.c (thread_name_command, thread_find_command): Constify.
This commit is contained in:
Tom Tromey
2017-09-12 20:45:21 -06:00
parent 6781007668
commit fc41a75bee
2 changed files with 6 additions and 2 deletions

View File

@@ -1912,7 +1912,7 @@ thread_command (char *tidstr, int from_tty)
/* Implementation of `thread name'. */
static void
thread_name_command (char *arg, int from_tty)
thread_name_command (const char *arg, int from_tty)
{
struct thread_info *info;
@@ -1929,7 +1929,7 @@ thread_name_command (char *arg, int from_tty)
/* Find thread ids with a name, target pid, or extra info matching ARG. */
static void
thread_find_command (char *arg, int from_tty)
thread_find_command (const char *arg, int from_tty)
{
struct thread_info *tp;
const char *tmp;