diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-09-03 20:45:07 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-09-03 20:45:07 +0000 |
commit | 48e7780105e04ff2523334dd67d8b67859c07e4e (patch) | |
tree | ffd82f65a7b64c30cf3aa1e0be0ef1e26e16a2df /sim | |
parent | 36a31ec983a162960eb0c14d1054f8cb95a5db87 (diff) | |
download | gdb-48e7780105e04ff2523334dd67d8b67859c07e4e.tar.gz |
sim: mark complete_option_list args const to fix build warnings
The completion API was updated, but this func missed having its
text/word args const.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/ChangeLog | 4 | ||||
-rw-r--r-- | sim/common/sim-options.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 19ee5c470c1..b2db9d5b1d0 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2013-09-03 Mike Stump <mikestump@comcast.net> + + * sim-options.c (complete_option_list): Mark text and word const. + 2013-06-28 Tom Tromey <tromey@redhat.com> * Make-common.in (version.c): Use version.in, not diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index fdc05a4a0e3..170548b5eee 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -920,7 +920,7 @@ find_match (SIM_DESC sd, sim_cpu *cpu, char *argv[], int *pargi) static char ** complete_option_list (char **ret, size_t *cnt, const struct option_list *ol, - char *text, char *word) + const char *text, const char *word) { const OPTION *opt = NULL; int argi; |