aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-options.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-09-03 20:45:08 +0000
committerMike Frysinger <vapier@gentoo.org>2013-09-03 20:45:08 +0000
commitf06dccb0fe9f0d33dc22be31a0a747a0148d48c1 (patch)
treef0439148988024e4717dc63e52b46e0800ec270e /sim/common/sim-options.c
parentb14016f0b25bcd9e8d44998abb8e46372bbbcef5 (diff)
downloadgdb-f06dccb0fe9f0d33dc22be31a0a747a0148d48c1.zip
gdb-f06dccb0fe9f0d33dc22be31a0a747a0148d48c1.tar.gz
gdb-f06dccb0fe9f0d33dc22be31a0a747a0148d48c1.tar.bz2
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/common/sim-options.c')
-rw-r--r--sim/common/sim-options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c
index fdc05a4..170548b 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;