aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-07-21 17:35:10 -0600
committerTom Tromey <tromey@redhat.com>2014-07-24 11:30:03 -0600
commit64669f3b4bab4096df75b7279c5b2d0a4784b835 (patch)
treebe81d1aeec4a8990377b1a8f87347c8b8471253c
parentd3d3328bca04f0a5d0c9216c53f737d94f5f947b (diff)
downloadgdb-64669f3b4bab4096df75b7279c5b2d0a4784b835.zip
gdb-64669f3b4bab4096df75b7279c5b2d0a4784b835.tar.gz
gdb-64669f3b4bab4096df75b7279c5b2d0a4784b835.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cli/cli-decode.c3
-rw-r--r--gdb/cli/cli-decode.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3cd0df6..1a20220 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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>
+
* stack.c (up_silently_base, down_silently_base): Make argument
const.
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index f09b777..fcd4ceb 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -936,10 +936,9 @@ apropos_cmd (struct ui_file *stream,
help_list. */
void
-help_cmd (char *arg, struct ui_file *stream)
+help_cmd (const char *command, struct ui_file *stream)
{
struct cmd_list_element *c;
- const char *command = arg;
if (!command)
{
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h
index c6edc87..48ed604 100644
--- a/gdb/cli/cli-decode.h
+++ b/gdb/cli/cli-decode.h
@@ -216,7 +216,7 @@ extern void help_cmd_list (struct cmd_list_element *, enum command_class,
/* 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 *,
struct re_pattern_buffer *, char *);