diff options
author | Tim Potter <tpot@samba.org> | 2001-05-07 02:03:32 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-05-07 02:03:32 +0000 |
commit | 3762d48404c60fdeda25ff4083b9ef878917a011 (patch) | |
tree | da0e899e21b9291e2d0673200843779f912b1ef0 | |
parent | 8e84cde71dbfda6384cf8afe699d7d55ddaab67a (diff) | |
download | samba-3762d48404c60fdeda25ff4083b9ef878917a011.tar.gz samba-3762d48404c60fdeda25ff4083b9ef878917a011.tar.bz2 samba-3762d48404c60fdeda25ff4083b9ef878917a011.zip |
Some versions of readline don't have rl_completion_func_t. )-:
Spotted by http://build.samba.org/
(This used to be commit da5a0f5c5b0917148fb6b668d4316aa4924708a1)
-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; |