1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00

Quieten compiler warnings about a callback function prototype that has

changed in recent versions of Readline.
(This used to be commit d0a0d27caa)
This commit is contained in:
Martin Pool 2001-11-19 03:11:28 +00:00
parent 09e4d181eb
commit eb2bf006ac

View File

@ -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;