summaryrefslogtreecommitdiffhomepage
path: root/mixutils
diff options
context:
space:
mode:
Diffstat (limited to 'mixutils')
-rw-r--r--mixutils/mixvm_command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mixutils/mixvm_command.c b/mixutils/mixvm_command.c
index b8bef53..d13e5ac 100644
--- a/mixutils/mixvm_command.c
+++ b/mixutils/mixvm_command.c
@@ -76,7 +76,7 @@ static const char *mix_commands_[ALL_COMMANDS_NO_] = {NULL};
#ifdef HAVE_LIBREADLINE
/* readline functions */
static char *
-mixvm_cmd_generator_ (char *text, int state);
+mixvm_cmd_generator_ (const char *text, int state);
/* Attempt to complete on the contents of TEXT. START and END bound the
@@ -95,7 +95,7 @@ mixvm_cmd_completion_ (char *text, int start, int end)
to complete. Otherwise it is the name of a file in the current
directory. */
if (start == 0)
- matches = completion_matches (text, mixvm_cmd_generator_);
+ matches = rl_completion_matches (text, mixvm_cmd_generator_);
return (matches);
}
@@ -104,7 +104,7 @@ mixvm_cmd_completion_ (char *text, int start, int end)
to start from scratch; without any state (i.e. STATE == 0), then we
start at the top of the list. */
static char *
-mixvm_cmd_generator_ (char *text, int state)
+mixvm_cmd_generator_ (const char *text, int state)
{
static int list_index, len;
const char *name;