blob: a3f40c8df60fced42258114e7845c27ad174d2b3 [file] [log] [blame]
Gustavo Zacarias8d89fd22014-03-02 01:21:11 -03001The CPPFunction typedef (among others) have been deprecated in favour of
2specific prototyped typedefs since readline 4.2.
3It's been working since because compatibility typedefs have been
4in place until they were removed in readline 6.3.
5
6Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
7
8diff -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
11@@ -1474,7 +1474,7 @@
12 #ifdef HAVE_LIBREADLINE
13 if (!opt_script_mode) {
14 rl_initialize ();
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;
18 }
19 #endif