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