From 5b10184c5844524e59621dd40cefd1db69680f95 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 27 Dec 2013 14:36:35 -0700 Subject: 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. --- gdb/cli/cli-cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/cli') 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); } -- cgit v1.1