2003-08-04 Andrew Cagney <cagney@redhat.com>

* monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
	* cli/cli-script.c (define_command): Call query directly, instead
	of passing it a buffer.
	* ocd.c (ocd_error): Pass error a constant format string.
	* remote-mips.c (mips_error): Use fputs_filtered.
This commit is contained in:
Andrew Cagney
2003-08-05 02:44:50 +00:00
parent 1062ca825e
commit ab4e3d93a0
5 changed files with 18 additions and 7 deletions

View File

@ -1092,11 +1092,12 @@ define_command (char *comname, int from_tty)
if (c)
{
int q;
if (c->class == class_user || c->class == class_alias)
tem = "Redefine command \"%s\"? ";
q = query ("Redefine command \"%s\"? ", c->name);
else
tem = "Really redefine built-in command \"%s\"? ";
if (!query (tem, c->name))
q = query ("Really redefine built-in command \"%s\"? ", c->name);
if (!q)
error ("Command \"%s\" not redefined.", c->name);
}