summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-11-19 03:34:45 +0000
committerMartin Pool <mbp@samba.org>2001-11-19 03:34:45 +0000
commit4ea31fb67595ae8705701bd9fb8d8a993c4013fb (patch)
treec668702112641b0487fd71f89431400d87d49c49 /source3/lib
parent8654a161c8722a0059b15af12cdb81b27d49e71a (diff)
downloadsamba-4ea31fb67595ae8705701bd9fb8d8a993c4013fb.tar.gz
samba-4ea31fb67595ae8705701bd9fb8d8a993c4013fb.tar.bz2
samba-4ea31fb67595ae8705701bd9fb8d8a993c4013fb.zip
Oops, Tim says rl_completion_func_t doesn't exist in all versions of
readline. (This used to be commit c4b44cfc3f15f9e85a36981867e534792ccb724e)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/readline.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c
index 543e4c3349..927c903255 100644
--- a/source3/lib/readline.c
+++ b/source3/lib/readline.c
@@ -73,13 +73,11 @@ char *smb_readline(char *prompt, void (*callback)(void),
completion_fn);
if (completion_fn) {
- /* The cast is here because the callback prototype has
- changed slightly between different versions of
- Readline. The same function works in all of them
- to date, but we get compiler warnings without the
- cast. */
- rl_attempted_completion_function =
- (rl_completion_func_t *) completion_fn;
+ /* The callback prototype has changed slightly between
+ different versions of Readline, so the same
+ function works in all of them to date, but we get
+ compiler warnings in some. */
+ rl_attempted_completion_function = completion_fn;
}
if (callback) rl_event_hook = (Function *)callback;