summaryrefslogtreecommitdiff
path: root/gdb/cp-support.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-09 21:22:52 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:44:22 -0600
commit4a47555179bfcfd3c9e4ad2752e38ae398fc7dcd (patch)
tree2b094aeb880bf346f29279ea09e50f1cffba6db1 /gdb/cp-support.c
parent990b9f9f5a301cef9c16035c341a7b0b7ccc983d (diff)
Constify first_component_command
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * cp-support.c (first_component_command): Constify.
Diffstat (limited to 'gdb/cp-support.c')
-rw-r--r--gdb/cp-support.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index aa0229f6d9..6b5f2a3c5b 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;