aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-cmds.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-27 14:36:35 -0700
committerTom Tromey <tromey@redhat.com>2014-06-26 09:14:18 -0600
commit5b10184c5844524e59621dd40cefd1db69680f95 (patch)
tree2428465a35743f0051464b8f123892a7f48188f5 /gdb/cli/cli-cmds.c
parent069003265c89fab0c46c5a831c2beeec4bcfb501 (diff)
downloadgdb-5b10184c5844524e59621dd40cefd1db69680f95.zip
gdb-5b10184c5844524e59621dd40cefd1db69680f95.tar.gz
gdb-5b10184c5844524e59621dd40cefd1db69680f95.tar.bz2
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.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r--gdb/cli/cli-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index a4f52f8..2e08a5c 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);
}