[4/4] constify error_no_arg
Commit Message
This is a trivial patch to make error_no_arg take a const argument.
2014-06-19 Tom Tromey <tromey@redhat.com>
* cli/cli-cmds.c (error_no_arg): Make "why" const.
* command.h (error_no_arg): Update.
---
gdb/ChangeLog | 5 +++++
gdb/cli/cli-cmds.c | 2 +-
gdb/command.h | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
@@ -204,7 +204,7 @@ static const char *script_ext_mode = script_ext_soft;
none is supplied. */
void
-error_no_arg (char *why)
+error_no_arg (const char *why)
{
error (_("Argument required (%s)."), why);
}
@@ -378,7 +378,7 @@ extern void cmd_show_list (struct cmd_list_element *, int, char *);
/* Used everywhere whenever at least one parameter is required and
none is specified. */
-extern void error_no_arg (char *) ATTRIBUTE_NORETURN;
+extern void error_no_arg (const char *) ATTRIBUTE_NORETURN;
extern void dont_repeat (void);