Fixed compiler warning.
authorTim Potter <tpot@samba.org>
Mon, 7 May 2001 01:08:41 +0000 (01:08 +0000)
committerTim Potter <tpot@samba.org>
Mon, 7 May 2001 01:08:41 +0000 (01:08 +0000)
(This used to be commit 063c2dea920dbf415e22d0359baa7b36bf513f09)

source3/lib/readline.c

index 75a38c68521f9c79e1763275824f79032b735f56..a524e1a7f04b9db7071c11fee9c42ce030cb700e 100644 (file)
@@ -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;