1 The CPPFunction typedef (among others) have been deprecated in favour of
2 specific prototyped typedefs since readline 4.2.
3 It's been working since because compatibility typedefs have been
4 in place until they were removed in readline 6.3.
6 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
8 diff -Nura parted-3.1.orig/parted/ui.c parted-3.1/parted/ui.c
9 --- parted-3.1.orig/parted/ui.c 2014-03-01 16:11:41.970827134 -0300
10 +++ parted-3.1/parted/ui.c 2014-03-01 16:11:55.540259786 -0300
12 #ifdef HAVE_LIBREADLINE
13 if (!opt_script_mode) {
15 - rl_attempted_completion_function = (CPPFunction*) complete_function;
16 + rl_attempted_completion_function = (rl_completion_func_t *) complete_function;
17 readline_state.in_readline = 0;