From 2e3d4f4d5d386995e99d035354a9e411d1dc0331 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 3 Jan 2016 01:51:44 -0500 Subject: sim: sim_{create_inferior,open,parse_args}: constify argv/env slightly 2016-01-03 Mike Frysinger * sim-options.c (sim_parse_args): Mark argv array const. * sim-options.h (sim_parse_args): Likewise. --- sim/common/sim-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/common/sim-options.c') 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; -- cgit v1.1