Some versions of readline don't have rl_completion_func_t. )-:
authorTim Potter <tpot@samba.org>
Mon, 7 May 2001 02:03:32 +0000 (02:03 +0000)
committerTim Potter <tpot@samba.org>
Mon, 7 May 2001 02:03:32 +0000 (02:03 +0000)
Spotted by http://build.samba.org/
(This used to be commit da5a0f5c5b0917148fb6b668d4316aa4924708a1)

source3/lib/readline.c

index a524e1a7f04b9db7071c11fee9c42ce030cb700e..75a38c68521f9c79e1763275824f79032b735f56 100644 (file)
@@ -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;