aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-setshow.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-26 22:31:32 -0700
committerTom Tromey <tromey@redhat.com>2014-06-26 09:14:17 -0600
commit069003265c89fab0c46c5a831c2beeec4bcfb501 (patch)
tree68608cf08b474766422a012c8221a1d7add7af4e /gdb/cli/cli-setshow.h
parentc2bcbb1d04bb46a130f2c84de05cbbdccc0645fc (diff)
downloadgdb-069003265c89fab0c46c5a831c2beeec4bcfb501.zip
gdb-069003265c89fab0c46c5a831c2beeec4bcfb501.tar.gz
gdb-069003265c89fab0c46c5a831c2beeec4bcfb501.tar.bz2
constify do_set_command and do_show_command
This changes do_set_command and do_show_command to take const arguments. 2014-06-26 Tom Tromey <tromey@redhat.com> * cli/cli-setshow.c (do_set_command): Make "arg" const. (do_show_command): Make "arg" const. * cli/cli-setshow.h (do_set_command, do_show_command): Update.
Diffstat (limited to 'gdb/cli/cli-setshow.h')
-rw-r--r--gdb/cli/cli-setshow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-setshow.h b/gdb/cli/cli-setshow.h
index a68d610..7619bad 100644
--- a/gdb/cli/cli-setshow.h
+++ b/gdb/cli/cli-setshow.h
@@ -23,9 +23,9 @@ struct cmd_list_element;
Returns 1 for true, 0 for false, and -1 if invalid. */
extern int parse_cli_boolean_value (const char *arg);
-extern void do_set_command (char *arg, int from_tty,
+extern void do_set_command (const char *arg, int from_tty,
struct cmd_list_element *c);
-extern void do_show_command (char *arg, int from_tty,
+extern void do_show_command (const char *arg, int from_tty,
struct cmd_list_element *c);
extern void cmd_show_list (struct cmd_list_element *list, int from_tty,