diff --git a/libcli/smbreadline/smbreadline.c b/libcli/smbreadline/smbreadline.c index cff25a7f5a5..80e10b0071c 100644 --- a/libcli/smbreadline/smbreadline.c +++ b/libcli/smbreadline/smbreadline.c @@ -141,7 +141,7 @@ char *smb_readline(const char *prompt, void (*callback)(void), #if HAVE_DECL_RL_EVENT_HOOK if (callback) - rl_event_hook = (Function *)callback; + rl_event_hook = (rl_hook_func_t *)callback; #endif ret = readline(prompt); if (ret && *ret)