This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 44/67] Constify some commands in thread.c
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Wed, 20 Sep 2017 23:10:00 -0600
- Subject: [RFA 44/67] Constify some commands in thread.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* thread.c (thread_name_command, thread_find_command): Constify.
---
gdb/ChangeLog | 4 ++++
gdb/thread.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/thread.c b/gdb/thread.c
index 2539d43..1d7cb55 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -1900,7 +1900,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;
@@ -1917,7 +1917,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;
--
2.9.4