Constify not_just_help_class_command

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

	* command.h (not_just_help_class_command): Update.
	* cli/cli-decode.h (not_just_help_class_command): Update.
	* cli/cli-decode.c (not_just_help_class_command): Constify.
This commit is contained in:
Tom Tromey 2017-09-09 20:57:10 -06:00
parent e4e3333549
commit eb7c454d73
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2017-09-27 Tom Tromey <tom@tromey.com>
* command.h (not_just_help_class_command): Update.
* cli/cli-decode.h (not_just_help_class_command): Update.
* cli/cli-decode.c (not_just_help_class_command): Constify.
2017-09-27 Tom Tromey <tom@tromey.com>
* gdb_bfd.c (maintenance_info_bfds): Constify.

View File

@ -440,7 +440,7 @@ add_abbrev_prefix_cmd (const char *name, enum command_class theclass,
/* This is an empty "cfunc". */
void
not_just_help_class_command (char *args, int from_tty)
not_just_help_class_command (const char *args, int from_tty)
{
}

View File

@ -228,7 +228,7 @@ extern void apropos_cmd (struct ui_file *, struct cmd_list_element *,
function field NULL, the command is interpreted as a help topic, or
as a class of commands. */
extern void not_just_help_class_command (char *arg, int from_tty);
extern void not_just_help_class_command (const char *arg, int from_tty);
/* Exported to cli/cli-setshow.c */

View File

@ -459,7 +459,7 @@ extern scoped_restore_tmpl<int> prevent_dont_repeat (void);
function field NULL, the command is interpreted as a help topic, or
as a class of commands. */
extern void not_just_help_class_command (char *, int);
extern void not_just_help_class_command (const char *, int);
/* Check function pointer. */
extern int cmd_func_p (struct cmd_list_element *cmd);