From d173bf704904329797fa32d29607e8ebd639f5cd Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 19 Nov 2001 03:44:19 +0000 Subject: Added comment about why not to cast the assignment of rl_attempted_completion_function to rl_completion_function_t. (This used to be commit dfaafcd6221412613f9e4eccdaaa2e84253def81) --- source3/lib/readline.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/readline.c b/source3/lib/readline.c index 927c903255..fa2be0e16b 100644 --- a/source3/lib/readline.c +++ b/source3/lib/readline.c @@ -74,9 +74,12 @@ char *smb_readline(char *prompt, void (*callback)(void), if (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. */ + different versions of Readline, so the same function + works in all of them to date, but we get compiler + warnings in some. NOTE: that not all versions of + readline have rl_completion_func_t so attempting to cast + the statement below to get rid of the warning will not + compile for everyone. */ rl_attempted_completion_function = completion_fn; } -- cgit