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 | da5a0f5c5b0917148fb6b668d4316aa4924708a1 (patch) | |
tree | 9f3bb237d4cbc920c2bc26a07b76629610f7ed65 /source/lib/readline.c | |
parent | 1ea5aa4a80f9da56b071b403fb8f1cfa0ff79b8d (diff) | |
download | samba-da5a0f5c5b0917148fb6b668d4316aa4924708a1.tar.gz samba-da5a0f5c5b0917148fb6b668d4316aa4924708a1.tar.xz samba-da5a0f5c5b0917148fb6b668d4316aa4924708a1.zip |
Some versions of readline don't have rl_completion_func_t. )-:
Spotted by http://build.samba.org/
Diffstat (limited to 'source/lib/readline.c')
-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; |