summaryrefslogtreecommitdiffstats
path: root/source/lib/readline.c
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
commit063c2dea920dbf415e22d0359baa7b36bf513f09 (patch)
tree0242918a95fed7c43d34e6901557fd38ef480fe7 /source/lib/readline.c
parente8819715038ed49b07ed5639b1b88ad12e994b53 (diff)
downloadsamba-063c2dea920dbf415e22d0359baa7b36bf513f09.tar.gz
samba-063c2dea920dbf415e22d0359baa7b36bf513f09.tar.xz
samba-063c2dea920dbf415e22d0359baa7b36bf513f09.zip
Fixed compiler warning.
Diffstat (limited to 'source/lib/readline.c')
-rw-r--r--source/lib/readline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lib/readline.c b/source/lib/readline.c
index 75a38c68521..a524e1a7f04 100644
--- a/source/lib/readline.c
+++ b/source/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;