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/sh/interp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sim/sh/interp.c') diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 2f59c5c..df29f96 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -2378,7 +2378,8 @@ free_state (SIM_DESC sd) } SIM_DESC -sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv) +sim_open (SIM_OPEN_KIND kind, host_callback *cb, + struct bfd *abfd, char * const *argv) { char **p; int i; @@ -2483,7 +2484,8 @@ parse_and_set_memory_size (SIM_DESC sd, const char *str) } SIM_RC -sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd, char **argv, char **env) +sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd, + char * const *argv, char * const *env) { /* Clear the registers. */ memset (&saved_state, 0, -- cgit v1.1