diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-03 01:51:44 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-06 21:48:59 -0500 |
commit | 2e3d4f4d5d386995e99d035354a9e411d1dc0331 (patch) | |
tree | 6d149d58208966cc50be708fccc5d5273a702de5 /sim/common | |
parent | 23ad6f3ec4b1086a987ba05e6ea77c131d72875c (diff) | |
download | gdb-2e3d4f4d5d386995e99d035354a9e411d1dc0331.zip gdb-2e3d4f4d5d386995e99d035354a9e411d1dc0331.tar.gz gdb-2e3d4f4d5d386995e99d035354a9e411d1dc0331.tar.bz2 |
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.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-options.c | 2 | ||||
-rw-r--r-- | sim/common/sim-options.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 6dc76f5..f1b372b 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2016-01-06 Mike Frysinger <vapier@gentoo.org> + + * sim-options.c (sim_parse_args): Mark argv array const. + * sim-options.h (sim_parse_args): Likewise. + 2016-01-05 Mike Frysinger <vapier@gentoo.org> * sim-trace.c: Include dis-asm.h. diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index ad8b1eb..7393554 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -458,7 +458,7 @@ dup_arg_p (const char *arg) /* Called by sim_open to parse the arguments. */ SIM_RC -sim_parse_args (SIM_DESC sd, char **argv) +sim_parse_args (SIM_DESC sd, char * const *argv) { int c, i, argc, num_opts, save_opterr; char *p, *short_options; diff --git a/sim/common/sim-options.h b/sim/common/sim-options.h index 7d20382..8086a37 100644 --- a/sim/common/sim-options.h +++ b/sim/common/sim-options.h @@ -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. */ |