smbreadline: switch to new-style readline typedef
[garming/samba-autobuild/.git] / libcli / smbreadline / smbreadline.c
index cff25a7f5a554c6af6620706d7a46dfdb5143a4e..80e10b0071cc8e8791c9d6e6a4a7042c21a44bde 100644 (file)
@@ -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)