From: Tom Tromey Date: Fri, 27 Dec 2013 21:36:35 +0000 (-0700) Subject: constify error_no_arg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b10184c5844524e59621dd40cefd1db69680f95;p=binutils-gdb.git constify error_no_arg This is a trivial patch to make error_no_arg take a const argument. 2014-06-26 Tom Tromey * cli/cli-cmds.c (error_no_arg): Make "why" const. * command.h (error_no_arg): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2b26f6352e6..c60fad8dddf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-06-26 Tom Tromey + + * cli/cli-cmds.c (error_no_arg): Make "why" const. + * command.h (error_no_arg): Update. + 2014-06-26 Tom Tromey * cli/cli-setshow.c (do_set_command): Make "arg" const. diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index a4f52f81fde..2e08a5c39d9 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -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); } diff --git a/gdb/command.h b/gdb/command.h index a5040a44327..bc9728f2c67 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -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);