From 3762d48404c60fdeda25ff4083b9ef878917a011 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 7 May 2001 02:03:32 +0000 Subject: Some versions of readline don't have rl_completion_func_t. )-: Spotted by http://build.samba.org/ (This used to be commit da5a0f5c5b0917148fb6b668d4316aa4924708a1) --- source3/lib/readline.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit