diff options
author | Martin Pool <mbp@samba.org> | 2001-11-19 03:11:28 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-11-19 03:11:28 +0000 |
commit | d0a0d27caa04029a814d942e35fb5382bb9a492c (patch) | |
tree | b1558db941a928b47df5d58e83d3cadf1d8ac37c | |
parent | 10022753d1d7114eadbe5a83183a6176eff1d7ff (diff) | |
download | samba-d0a0d27caa04029a814d942e35fb5382bb9a492c.tar.gz |
Quieten compiler warnings about a callback function prototype that has
changed in recent versions of Readline.
-rw-r--r-- | source/lib/readline.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/lib/readline.c b/source/lib/readline.c index 2475017adf0..543e4c3349c 100644 --- a/source/lib/readline.c +++ b/source/lib/readline.c @@ -73,7 +73,13 @@ char *smb_readline(char *prompt, void (*callback)(void), completion_fn); if (completion_fn) { - rl_attempted_completion_function = 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; } if (callback) rl_event_hook = (Function *)callback; |