aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-setshow.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-03-27 10:35:35 -0600
committerTom Tromey <tromey@redhat.com>2014-06-18 08:16:56 -0600
commit5bc98e5269423c49d5543079c824f551db4028f0 (patch)
tree40c96ea77f5e451134d7a5933462be65c09e17e2 /gdb/cli/cli-setshow.h
parent8236def8eb5276731a00eb21c2e687e4484aeb59 (diff)
downloadgdb-5bc98e5269423c49d5543079c824f551db4028f0.zip
gdb-5bc98e5269423c49d5543079c824f551db4028f0.tar.gz
gdb-5bc98e5269423c49d5543079c824f551db4028f0.tar.bz2
constify parse_cli_boolean_value
This changes a parameter of parse_cli_boolean_value to be const. 2014-06-18 Tom Tromey <tromey@redhat.com> * cli/cli-setshow.h (parse_cli_boolean_value): Update. * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
Diffstat (limited to 'gdb/cli/cli-setshow.h')
-rw-r--r--gdb/cli/cli-setshow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-setshow.h b/gdb/cli/cli-setshow.h
index a41a66d..a68d610 100644
--- a/gdb/cli/cli-setshow.h
+++ b/gdb/cli/cli-setshow.h
@@ -21,7 +21,7 @@ struct cmd_list_element;
/* Parse ARG, an option to a boolean variable.
Returns 1 for true, 0 for false, and -1 if invalid. */
-extern int parse_cli_boolean_value (char *arg);
+extern int parse_cli_boolean_value (const char *arg);
extern void do_set_command (char *arg, int from_tty,
struct cmd_list_element *c);