forked from Imagelibrary/binutils-gdb
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:
@@ -1,3 +1,8 @@
|
|||||||
|
2014-06-26 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* cli/cli-cmds.c (error_no_arg): Make "why" const.
|
||||||
|
* command.h (error_no_arg): Update.
|
||||||
|
|
||||||
2014-06-26 Tom Tromey <tromey@redhat.com>
|
2014-06-26 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* cli/cli-setshow.c (do_set_command): Make "arg" const.
|
* cli/cli-setshow.c (do_set_command): Make "arg" const.
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ static const char *script_ext_mode = script_ext_soft;
|
|||||||
none is supplied. */
|
none is supplied. */
|
||||||
|
|
||||||
void
|
void
|
||||||
error_no_arg (char *why)
|
error_no_arg (const char *why)
|
||||||
{
|
{
|
||||||
error (_("Argument required (%s)."), 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
|
/* Used everywhere whenever at least one parameter is required and
|
||||||
none is specified. */
|
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);
|
extern void dont_repeat (void);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user