aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cli/cli-setshow.c2
-rw-r--r--gdb/cli/cli-setshow.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8a7d30c..3990129 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
+
+2014-06-18 Tom Tromey <tromey@redhat.com>
+
* probe.c (info_probes_for_ops): Make "arg" const.
* probe.h (info_probes_for_ops): Update.
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c
index 75f1526..d14d361 100644
--- a/gdb/cli/cli-setshow.c
+++ b/gdb/cli/cli-setshow.c
@@ -76,7 +76,7 @@ parse_auto_binary_operation (const char *arg)
/* See cli-setshow.h. */
int
-parse_cli_boolean_value (char *arg)
+parse_cli_boolean_value (const char *arg)
{
int length;
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);