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.
This commit is contained in:
Mike Frysinger 2013-09-03 20:45:08 +00:00
parent b14016f0b2
commit f06dccb0fe
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;