This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 11/67] Constify first_component_command
- 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:09:27 -0600
- Subject: [RFA 11/67] Constify first_component_command
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* cp-support.c (first_component_command): Constify.
---
gdb/ChangeLog | 4 ++++
gdb/cp-support.c | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index aa0229f..6b5f2a3 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -68,7 +68,6 @@ struct cmd_list_element *maint_cplus_cmd_list = NULL;
/* The actual commands. */
static void maint_cplus_command (char *arg, int from_tty);
-static void first_component_command (char *arg, int from_tty);
/* A list of typedefs which should not be substituted by replace_typedefs. */
static const char * const ignore_typedefs[] =
@@ -1611,7 +1610,7 @@ maint_cplus_command (char *arg, int from_tty)
cp_find_first_component. */
static void
-first_component_command (char *arg, int from_tty)
+first_component_command (const char *arg, int from_tty)
{
int len;
char *prefix;
--
2.9.4