Constify first_component_command

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

	* cp-support.c (first_component_command): Constify.
This commit is contained in:
Tom Tromey 2017-09-09 21:22:52 -06:00
parent 990b9f9f5a
commit 4a47555179
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2017-09-27 Tom Tromey <tom@tromey.com>
* cp-support.c (first_component_command): Constify.
2017-09-27 Tom Tromey <tom@tromey.com>
* psymtab.c (maintenance_print_psymbols)

View File

@ -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;