From: Tom Tromey Date: Sun, 10 Sep 2017 03:22:52 +0000 (-0600) Subject: Constify first_component_command X-Git-Tag: users/gbenson/thread_db-test/2017-11-22~784 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a47555179bfcfd3c9e4ad2752e38ae398fc7dcd;p=thirdparty%2Fbinutils-gdb.git Constify first_component_command gdb/ChangeLog 2017-09-27 Tom Tromey * cp-support.c (first_component_command): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 004e3db1cf3..a9bd5452d6f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-09-27 Tom Tromey + + * cp-support.c (first_component_command): Constify. + 2017-09-27 Tom Tromey * psymtab.c (maintenance_print_psymbols) diff --git a/gdb/cp-support.c b/gdb/cp-support.c index aa0229f6d9e..6b5f2a3c5b3 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;