constify error_no_arg

This is a trivial patch to make error_no_arg take a const argument.

2014-06-26  Tom Tromey  <tromey@redhat.com>

	* cli/cli-cmds.c (error_no_arg): Make "why" const.
	* command.h (error_no_arg): Update.
This commit is contained in:
Tom Tromey
2013-12-27 14:36:35 -07:00
parent 069003265c
commit 5b10184c58
3 changed files with 7 additions and 2 deletions

View File

@ -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);