summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-07 01:08:41 +0000
committerTim Potter <tpot@samba.org>2001-05-07 01:08:41 +0000
commit3bb92410a46d37d4487f1ea8a95af17828c727be (patch)
treef399b58b86012697743d5494714a360d11c7af17
parent998fcd3f1ea496c0799cf9259d93135e13b4875e (diff)
downloadsamba-3bb92410a46d37d4487f1ea8a95af17828c727be.tar.gz
samba-3bb92410a46d37d4487f1ea8a95af17828c727be.tar.bz2
samba-3bb92410a46d37d4487f1ea8a95af17828c727be.zip
Fixed compiler warning.
(This used to be commit 063c2dea920dbf415e22d0359baa7b36bf513f09)
-rw-r--r--source3/lib/readline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c
index 75a38c6852..a524e1a7f0 100644
--- a/source3/lib/readline.c
+++ b/source3/lib/readline.c
@@ -49,7 +49,8 @@ char *smb_readline(char *prompt, void (*callback)(void),
char *ret;
#if HAVE_LIBREADLINE
if (completion_fn) {
- rl_attempted_completion_function = completion_fn;
+ rl_attempted_completion_function =
+ (rl_completion_func_t *)completion_fn;
}
if (callback) rl_event_hook = (Function *)callback;