Code cleanup: Make validate_format parameter const
gdb/ChangeLog 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> Code cleanup. * printcmd.c (validate_format): Make the parameter cmdname const.
This commit is contained in:
parent
0b736949a8
commit
8d89f51a70
|
@ -1,3 +1,8 @@
|
|||
2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Code cleanup.
|
||||
* printcmd.c (validate_format): Make the parameter cmdname const.
|
||||
|
||||
2015-03-26 Don Breazeal <donb@codesourcery.com>
|
||||
|
||||
* remote.c (_initialize_remote): Update comment.
|
||||
|
|
|
@ -927,7 +927,7 @@ do_examine (struct format_data fmt, struct gdbarch *gdbarch, CORE_ADDR addr)
|
|||
}
|
||||
|
||||
static void
|
||||
validate_format (struct format_data fmt, char *cmdname)
|
||||
validate_format (struct format_data fmt, const char *cmdname)
|
||||
{
|
||||
if (fmt.size != 0)
|
||||
error (_("Size letters are meaningless in \"%s\" command."), cmdname);
|
||||
|
|
Loading…
Reference in New Issue