diff options
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-options.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index f3212a1..f360dee 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2010-04-10 Mike Frysinger <vapier@gentoo.org> + + * sim-options.c (standard_option_handler): Add const markings to + local "type" var. + 2010-04-02 Mike Frysinger <vapier@gentoo.org> * hw-ports.h: Fix spelling typos. diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index 571b292..a37dca9 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -265,7 +265,7 @@ standard_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt, if (WITH_ENVIRONMENT != ALL_ENVIRONMENT && WITH_ENVIRONMENT != STATE_ENVIRONMENT (sd)) { - char *type; + const char *type; switch (WITH_ENVIRONMENT) { case USER_ENVIRONMENT: type = "user"; break; |