constify help_cmd
This constifies help_cmd. 2014-07-24 Tom Tromey <tromey@redhat.com> * cli/cli-decode.c (help_cmd): Make parameter "const". * cli/cli-decode.h (help_cmd): Update.
This commit is contained in:
parent
d3d3328bca
commit
64669f3b4b
|
@ -1,3 +1,8 @@
|
||||||
|
2014-07-24 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* cli/cli-decode.c (help_cmd): Make parameter "const".
|
||||||
|
* cli/cli-decode.h (help_cmd): Update.
|
||||||
|
|
||||||
2014-07-24 Tom Tromey <tromey@redhat.com>
|
2014-07-24 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* stack.c (up_silently_base, down_silently_base): Make argument
|
* stack.c (up_silently_base, down_silently_base): Make argument
|
||||||
|
|
|
@ -936,10 +936,9 @@ apropos_cmd (struct ui_file *stream,
|
||||||
help_list. */
|
help_list. */
|
||||||
|
|
||||||
void
|
void
|
||||||
help_cmd (char *arg, struct ui_file *stream)
|
help_cmd (const char *command, struct ui_file *stream)
|
||||||
{
|
{
|
||||||
struct cmd_list_element *c;
|
struct cmd_list_element *c;
|
||||||
const char *command = arg;
|
|
||||||
|
|
||||||
if (!command)
|
if (!command)
|
||||||
{
|
{
|
||||||
|
|
|
@ -216,7 +216,7 @@ extern void help_cmd_list (struct cmd_list_element *, enum command_class,
|
||||||
|
|
||||||
/* Functions that implement commands about CLI commands. */
|
/* Functions that implement commands about CLI commands. */
|
||||||
|
|
||||||
extern void help_cmd (char *, struct ui_file *);
|
extern void help_cmd (const char *, struct ui_file *);
|
||||||
|
|
||||||
extern void apropos_cmd (struct ui_file *, struct cmd_list_element *,
|
extern void apropos_cmd (struct ui_file *, struct cmd_list_element *,
|
||||||
struct re_pattern_buffer *, char *);
|
struct re_pattern_buffer *, char *);
|
||||||
|
|
Loading…
Reference in New Issue