mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 05:12:33 +08:00
constify deprecate_cmd
This constifies deprecate_cmd and the "replacement" field in struct cmd_list_element. 2014-07-24 Tom Tromey <tromey@redhat.com> * cli/cli-decode.c (deprecate_cmd): Make "replacement" const. * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now const. * command.h (deprecate_cmd): Update. * maint.c (maintenance_do_deprecate): Add casts.
This commit is contained in:
@ -194,7 +194,7 @@ extern struct cmd_list_element *lookup_cmd_1 (const char **,
|
||||
int);
|
||||
|
||||
extern struct cmd_list_element *deprecate_cmd (struct cmd_list_element *,
|
||||
char * );
|
||||
const char * );
|
||||
|
||||
extern void deprecated_cmd_warning (const char *);
|
||||
|
||||
|
Reference in New Issue
Block a user