diff options
-rw-r--r-- | source/lib/readline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/lib/readline.c b/source/lib/readline.c index a524e1a7f04..75a38c68521 100644 --- a/source/lib/readline.c +++ b/source/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; |