diff options
author | Tom Tromey <tromey@redhat.com> | 2014-07-21 20:37:34 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-07-24 11:30:03 -0600 |
commit | 429e55ea941f54f8e0481dd2048dc15af751ed71 (patch) | |
tree | 6a5b542cb8dee24e8a2ebe286537ac7e16eee3e2 /gdb/cli/cli-decode.c | |
parent | 64669f3b4bab4096df75b7279c5b2d0a4784b835 (diff) | |
download | gdb-429e55ea941f54f8e0481dd2048dc15af751ed71.zip gdb-429e55ea941f54f8e0481dd2048dc15af751ed71.tar.gz gdb-429e55ea941f54f8e0481dd2048dc15af751ed71.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli/cli-decode.c')
-rw-r--r-- | gdb/cli/cli-decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index fcd4ceb..a08cc45 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -261,7 +261,7 @@ add_cmd (const char *name, enum command_class class, cmd_cfunc_ftype *fun, Returns a pointer to the deprecated command. */ struct cmd_list_element * -deprecate_cmd (struct cmd_list_element *cmd, char *replacement) +deprecate_cmd (struct cmd_list_element *cmd, const char *replacement) { cmd->cmd_deprecated = 1; cmd->deprecated_warn_user = 1; |