summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-19 03:44:19 +0000
committerTim Potter <tpot@samba.org>2001-11-19 03:44:19 +0000
commitd173bf704904329797fa32d29607e8ebd639f5cd (patch)
treeb18a5e2d69a7ca1787868497c6523420c80044c7
parentc2a4f75e3e2b06fe538196ffd008705ede3cca7f (diff)
downloadsamba-d173bf704904329797fa32d29607e8ebd639f5cd.tar.gz
samba-d173bf704904329797fa32d29607e8ebd639f5cd.tar.bz2
samba-d173bf704904329797fa32d29607e8ebd639f5cd.zip
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)
-rw-r--r--source3/lib/readline.c9
1 files changed, 6 insertions, 3 deletions
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;
}