summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/readline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c
index 75a38c6852..a524e1a7f0 100644
--- a/source3/lib/readline.c
+++ b/source3/lib/readline.c
@@ -49,7 +49,8 @@ char *smb_readline(char *prompt, void (*callback)(void),
char *ret;
#if HAVE_LIBREADLINE
if (completion_fn) {
- rl_attempted_completion_function = completion_fn;
+ rl_attempted_completion_function =
+ (rl_completion_func_t *)completion_fn;
}
if (callback) rl_event_hook = (Function *)callback;