sim: mark complete_option_list args const to fix build warnings
authorMike Frysinger <vapier@gentoo.org>
Tue, 3 Sep 2013 20:45:08 +0000 (20:45 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 3 Sep 2013 20:45:08 +0000 (20:45 +0000)
The completion API was updated, but this func missed having its
text/word args const.

sim/common/ChangeLog
sim/common/sim-options.c

index 19ee5c4..b2db9d5 100644 (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
index fdc05a4..170548b 100644 (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;