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.
This commit is contained in:
parent
8236def8eb
commit
5bc98e5269
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user