diff --git a/WHATS_NEW b/WHATS_NEW index cfdc4884d..6e0432749 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.106 - ==================================== + Use correct rl_completion_func_t typedef for new readline. Make lvm 'dumpconfig --type default' complete for it to be consumed by lvm. Run pvscan --cache via systemd-run in udev if the PV label is detected lost. Fix memleak when lvmetad discovers PV to appear on another device. diff --git a/tools/lvm.c b/tools/lvm.c index 51e92932a..f9ab438b2 100644 --- a/tools/lvm.c +++ b/tools/lvm.c @@ -27,6 +27,7 @@ int main(int argc, char **argv) # include # ifndef HAVE_RL_COMPLETION_MATCHES # define rl_completion_matches(a, b) completion_matches((char *)a, b) +# define rl_completion_func_t CPPFunction # endif static struct cmdline_context *_cmdline; @@ -185,7 +186,7 @@ int lvm_shell(struct cmd_context *cmd, struct cmdline_context *cmdline) char *input = NULL, *args[MAX_ARGS], **argv; rl_readline_name = "lvm"; - rl_attempted_completion_function = (CPPFunction *) _completion; + rl_attempted_completion_function = (rl_completion_func_t *) _completion; _read_history(cmd);