diff options
author | Tim Potter <tpot@samba.org> | 2001-11-19 03:44:19 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-11-19 03:44:19 +0000 |
commit | dfaafcd6221412613f9e4eccdaaa2e84253def81 (patch) | |
tree | 05001cecb4eeaebe93ae61a7866a132b8e5c92be /source/lib | |
parent | 9b6667aa19c479fb27f557ca24129592bf94cbb7 (diff) | |
download | samba-dfaafcd6221412613f9e4eccdaaa2e84253def81.tar.gz samba-dfaafcd6221412613f9e4eccdaaa2e84253def81.tar.xz samba-dfaafcd6221412613f9e4eccdaaa2e84253def81.zip |
Added comment about why not to cast the assignment of
rl_attempted_completion_function to rl_completion_function_t.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/readline.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/lib/readline.c b/source/lib/readline.c index 927c903255f..fa2be0e16bd 100644 --- a/source/lib/readline.c +++ b/source/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; } |