summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-11-19 03:11:28 +0000
committerMartin Pool <mbp@samba.org>2001-11-19 03:11:28 +0000
commiteb2bf006acc4842d9b6d2749805dc24404a3d423 (patch)
treea665dfd2454053056e2489a7b73e76e75769a748 /source3/lib
parent09e4d181ebf218f52609df63a56e1314c73dbee1 (diff)
downloadsamba-eb2bf006acc4842d9b6d2749805dc24404a3d423.tar.gz
samba-eb2bf006acc4842d9b6d2749805dc24404a3d423.tar.bz2
samba-eb2bf006acc4842d9b6d2749805dc24404a3d423.zip
Quieten compiler warnings about a callback function prototype that has
changed in recent versions of Readline. (This used to be commit d0a0d27caa04029a814d942e35fb5382bb9a492c)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/readline.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c
index 2475017adf..543e4c3349 100644
--- a/source3/lib/readline.c
+++ b/source3/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;