diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-02-20 00:28:17 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-03-10 22:57:29 -0400 |
commit | 60d847df0b9691b7cb38bfba41b9d6aafd97efc2 (patch) | |
tree | a2fa4e54d1c4bc8a82cdc5fbd65f5958875356cf /sim/common/sim-options.c | |
parent | 61d1ce24e894c08a701efc5794012161ef101a60 (diff) | |
download | binutils-gdb-60d847df0b9691b7cb38bfba41b9d6aafd97efc2.tar.gz |
sim: constify arg to sim_do_command
It is rare for people to want to modify the cmd arg. In general, they
really shouldn't be, but a few still do. For those who misbehave, dupe
the string locally so they can bang on it.
Diffstat (limited to 'sim/common/sim-options.c')
-rw-r--r-- | sim/common/sim-options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index ed10dfe8954..281a47f3b23 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -971,7 +971,7 @@ sim_complete_command (SIM_DESC sd, const char *text, const char *word) } SIM_RC -sim_args_command (SIM_DESC sd, char *cmd) +sim_args_command (SIM_DESC sd, const char *cmd) { /* something to do? */ if (cmd == NULL) |