sim: sim_{create_inferior,open,parse_args}: constify argv/env slightly

2016-01-03  Mike Frysinger  <vapier@gentoo.org>

	* sim-options.c (sim_parse_args): Mark argv array const.
	* sim-options.h (sim_parse_args): Likewise.
This commit is contained in:
Mike Frysinger
2016-01-03 01:51:44 -05:00
parent 23ad6f3ec4
commit 2e3d4f4d5d
61 changed files with 257 additions and 79 deletions

View File

@ -135,7 +135,7 @@ SIM_RC sim_add_option_table (SIM_DESC sd, sim_cpu *cpu, const OPTION *table);
MODULE_INSTALL_FN standard_install;
/* Called by sim_open to parse the arguments. */
SIM_RC sim_parse_args (SIM_DESC sd, char **argv);
SIM_RC sim_parse_args (SIM_DESC sd, char * const *argv);
/* Print help messages for the options. IS_COMMAND is non-zero when
this function is called from the command line interpreter. */