From 429e55ea941f54f8e0481dd2048dc15af751ed71 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 21 Jul 2014 20:37:34 -0600 Subject: constify deprecate_cmd This constifies deprecate_cmd and the "replacement" field in struct cmd_list_element. 2014-07-24 Tom Tromey * cli/cli-decode.c (deprecate_cmd): Make "replacement" const. * cli/cli-decode.h (struct cmd_list_element) : Now const. * command.h (deprecate_cmd): Update. * maint.c (maintenance_do_deprecate): Add casts. --- gdb/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/command.h') diff --git a/gdb/command.h b/gdb/command.h index 5761447..1d63d2b 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -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 *); -- cgit v1.1