forked from Imagelibrary/binutils-gdb
Constify add_abbrev_prefix_cmd
This changes add_abbrev_prefix_cmd to take a const-taking callback function and then fixes the one caller. gdb/ChangeLog 2017-11-07 Tom Tromey <tom@tromey.com> * breakpoint.c (stop_command): Constify. * cli/cli-decode.c (struct cmd_list_element): Constify. * command.h (add_abbrev_prefix_cmd): Constify.
This commit is contained in:
@@ -424,7 +424,7 @@ add_prefix_cmd (const char *name, enum command_class theclass,
|
||||
|
||||
struct cmd_list_element *
|
||||
add_abbrev_prefix_cmd (const char *name, enum command_class theclass,
|
||||
cmd_cfunc_ftype *fun, const char *doc,
|
||||
cmd_const_cfunc_ftype *fun, const char *doc,
|
||||
struct cmd_list_element **prefixlist,
|
||||
const char *prefixname,
|
||||
int allow_unknown, struct cmd_list_element **list)
|
||||
|
||||
Reference in New Issue
Block a user